Skip to content

Commit e477bae

Browse files
committed
20250220 - clarify "wake to run" in task scheduler
1 parent ea2ef82 commit e477bae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

R.Rmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,12 @@ For example, it can be helpful to have an `R` markdown report run automatically
384384
1. Set the action for the task by selecting `Start a program`
385385
1. Under, `Program/script` browse to the `.bat` file that was created in step 1 and select `Next`
386386
1. Click `Finish` and the script is now configured to run automatically
387+
1. If you wish to schedule a task to run during a time at which your computer is likely to be asleep, you'll need to change the `Conditions` of the task to ensure that the computer "wakes up" to execute the script
388+
- In the Task Scheduler Library, select the task you just created
389+
- The task should appear on the lower half of the screen (double click to open in a new window).
390+
Select `Conditions` from the tabs across the top of the task window
391+
- Select `Wake the computer to run this task`
392+
- Note that elevated account permissions may be required to set this condition
387393
1. **Note: When `R` is updated, the path to the `bin` folder within `R` needs to be updated to reflect an accurate absolute path to R.**
388394
- Example: `C:\R\4.1.3\bin\R CMD BATCH` changed to `C:\R\4.3.0\bin\R CMD BATCH`
389395

0 commit comments

Comments
 (0)