Questions tagged [r-taskscheduler]

taskscheduleR is an R package for scheduling tasks in the Windows Task Scheduler using R scripts. Use this tag for questions about taskscheduleR. If your question is about Windows Task scheduler, use [windows-task-scheduler] instead.

taskscheduleR is an R package for scheduling tasks in the Windows Task Scheduler using R scripts. Use this tag for questions about taskscheduleR.

Links:

39 questions
7
votes
0 answers

Wake Computer Up to Run a R Script using taskscheduleR

I would like to run a script every 30 min from my local comp. Most of the time I am away from my desk. I do not want to run my computer all day. What would be some ways to do this. Currently I have the following code. The code works perfectly while…
Jordan Wrong
  • 1,205
  • 1
  • 12
  • 32
4
votes
1 answer

How to run task scheduler everyday at the same time in R?

How can I set a script to run everyday automatically at 11:00pm? I found the package "taskscheduleR", but I don't know how to run my script with it. taskschedulerR exemple: myscript <- system.file("extdata", "helloworld.R", package =…
Helio Roots
  • 177
  • 2
  • 10
3
votes
1 answer

R taskscheduleR not executing script

I'm trying to run a script once every minute using taskscheduleR library. I'm following the examples from the GitHub page but am running into the following problems: R says task created but the script does not execute properly (it should write data…
Gautam
  • 2,597
  • 1
  • 28
  • 51
2
votes
1 answer

R schedule automatic package updates

I want to automatically check and update packages every day. For this purpose, I've written few lines below which runs smoothly when I execute it in my RStudio. options(install.packages.compile.from.source = "always") update.packages(ask = FALSE,…
nba2020
  • 618
  • 1
  • 8
  • 22
2
votes
2 answers

R Script that Runs Daily and Writes a csv File

I am attempting to make an R script that will write a csv file to my working directory daily for me to check. I am trying to use the taskscheduleR package to do so, but it isn't behaving how I expected. Below is my code: print("Running the…
obewanjacobi
  • 458
  • 2
  • 12
2
votes
1 answer

taskscheduleR ERROR: The system cannot find the file specified

I tried to add a task scheduler from taskscheduleR on rstudio but it gives this error; Warning: running command 'schtasks /Delete /TN "script1.R" /F' had status 1 Creating task schedule: schtasks /Create /TN "script1.R" /TR "cmd /c…
Daniel
  • 33
  • 10
2
votes
0 answers

ERROR: path[1]="": The filename, directory name, or volume label syntax is incorrect

Can anyone explain to me what the following error is and how I can fix it: ERROR: path[1]="": The filename, directory name, or volume label syntax is incorrect It's from the RStudio add-in for the package taskscheduleR Yes, I've checked other…
wizkids121
  • 634
  • 1
  • 9
  • 22
2
votes
1 answer

Extended logging from taskscheduleR

I am scheduling some scripts with taskscheduleR for R. There are some performance issues I want to diagnose, but the problem is that standard logs from scheduler does not contain timestamps and contain only results of print and cat statements, so it…
PtrZlnk
  • 131
  • 6
1
vote
0 answers

Problems with R officedown when used in an automated task

I have a script that creates a .docx document with all the nice formatting I have configured using officedown ("xxx.Rmd"). It runs perfectly when I execute it and produces the expected result. This is the script: setwd("xxx") rmarkdown::render( …
1
vote
1 answer

How can I run my R script with taskscheduleR?

Using the taskscheduleR library I am trying to run a simple R script that creates a histogram of randomly distributed numbers.The script was set to run every 5 minutes. So I left R Studio open, expecting to see the histogram shape change every 5…
Idiaye
  • 39
  • 8
1
vote
1 answer

How to automate a script in R using taskscheduleR?

I am currently looking at this documentation to automate a script on my machine using R and taskscheduleR. I am confused within this documentation of the following: In the example within the documentation, what is "extdata", is this supposed to be…
Jaskeil
  • 1,044
  • 12
  • 33
1
vote
1 answer

How to execute taskscheduler_create() on multiple days on a monthly basis?

I have a query and I want to execute it on the two first days of the month and this happens every month. I used the following code but I received an error: taskscheduler_create(taskname = "test", rscript = "C:/Users/Public/TaskScheduler/test.R", …
Rami
  • 45
  • 6
1
vote
0 answers

No module named 'rpytools' when using reticulate via source

I have an R script that calls a Python script through the reticulate package. When I run this manually from R Studio, the script works perfectly. However, when I schedule through ScheduleR to run automatically at set times, I receive an error…
DrSchuess
  • 11
  • 2
1
vote
2 answers

Default Authorization Required response (401) - taskscheduleR

I'm trying to run a daily taskscheduleR script that pulls data into R from an API. It works when I run it as a one time task but for some reason it won't work as a daily task. I keep getting the following error in the log…
NBE
  • 641
  • 2
  • 11
  • 33
1
vote
1 answer

Scheduling a script in R with encoding

I have a script in R, task.R, that reads in a .csv file, does bunch of calculations and writes a new .csv file with the final data. I'm having trouble with special characters (Icelandic), e.g. æ, á, ú etc. As an example, when I source task.R, Ára…
Viðar Ingason
  • 265
  • 3
  • 11
1
2 3