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
1
vote
0 answers

Return R Script Log From Scheduling

I have scheduled an RScript to run via the TaskScheduler but there seems to be an error occurring in the code which does not occur when I run the code manually. Is there a way I can output the RScript log into a separate file so I can then debug?
Brad
  • 107
  • 8
1
vote
1 answer

taskscheduleR: cannot find the function "as"

I am trying to use the taskscheduleR add-in in RStudio to run a script weekly. Every time I get the same error: cannot find the function "as". Quitting from lines 25-83 (association_analysis.Rmd) Fehler in as(dataToTrans, "transactions") : konnte…
1
vote
1 answer

Scheduling rtweet::stream_tweets() in R

Attached code works fine for me when manually running it after restarting windows and R - but not when scheduling the task with taskscheduleR package (stops immediately after it starts running, creates file but no content). Might be related to some…
Robert
  • 133
  • 10
1
vote
1 answer

taskscheduleR runs ONCE but does not run HOURLY, WEEKLY, DAILY, etc

I am using taskscheduleR to run my R code. The one I have to run ONCE works just fine, however none of the other ones (HOURLY, WEEKLY, DAILY, etc.) work despite that R reports "SUCCESS: The scheduled task "test2" has successfully been created." Here…
TTT
  • 83
  • 1
  • 6
1
vote
1 answer

Automatical web-screenshot via taskscheduleR

I promise I'm not an expert of sites policy and that all the information that I'll eventually get will be used for didactical studies, as I'm a student. My purpose is to get a sequence of images of a web page (on which i will apply techniques of…
1
vote
0 answers

Error in system(cmd, intern = TRUE) : error in running command

I am running the following codes to create a scheduled scraping of tweets from Twitter using the "taskscheduleR" package on R Studio: a <- file.path("/Users/udayshankar/Desktop/UPElectionsRfiles/upelections.R") taskscheduler_create(taskname =…
0
votes
0 answers

Why can't I do a taskschedule when the output is overwriting a .csv in R?

I don't have admin rights but normally this is not an issue. library(taskscheduleR) #daily overwrite output taskscheduler_create(taskname = "Overwrite", rscript = "C:/Folder1/Next Folder/Backup/FileScript.R", schedule =…
user35131
  • 1,105
  • 6
  • 18
0
votes
0 answers

How to keep graphs included in xlsx file with taskscheduleR

I am creating an R script with openxlsx package that on the end creates .xlsx file including tables and graphs created with ggplot. And when I run script separately works perfect. However, when I want to create an automated schedule with…
0
votes
0 answers

Using cronR on GCP virtual machine doesn't work

I'm tryng to import a csv with a scheduled task with cronR. Unfortunatly even if I don't receive any error from log file I don't see any dataframe in global environment. Below the super easy…
0
votes
0 answers

taskscheduleR doesn't load into work space

I am working in R. I figured out how to use the taskscheduleR package to run a script at a specific time when I am away from my computer. I am wondering if there is a way to have that code populate my workspace. I know I can save a workspace using…
ChiJoe
  • 5
  • 1
0
votes
0 answers

Problems with script automation in R

I am trying to automate my script. Essentially a web scraping script (with Selenium) that loads a csv at the beginning and overwrite it at the end. This should happen every hour. To do this I use the taskscheduleR library. Below I report the…
0
votes
2 answers

How to schedule taskscheduleR once a month at the start of every month?

Looking to run R script once a month at the first of every month.I've figured out how to run it via task scheduler with the taskscheduleR library. Here is the current cadence I have set on it: taskscheduler_create(taskname = "Rebate Automation2",…
Jaskeil
  • 1,044
  • 12
  • 33
0
votes
1 answer

Problem with writing symbols €, £ and zł in package openxlsx using taskscheduleR (by cmd)

I have problem with saveworkbook and my result. I create an excel file with currency using createstyle(nmFmt='# ##0.00 zł') and createstyle(nmFmt='# ##0.00 €') etc. and then I use saveWorkbook(wb, xxx). In my result I see specific symbols lika a €,…
0
votes
2 answers

Scheduling an R script in TaskscheduleR results in "object not found" error

I am trying to build up a dataframe with financial data from an API. R should pull a new record every minute from that API and append it to the existing dataframe. U created a dataframe from that API with one record named "XRP_TimeSeries". Then I…
Dominique
  • 1
  • 1
0
votes
0 answers

Interrupt R .exe created by TaskscheduleR

I created a task running each hour by taskscheduleR. However, it may have some local connection problem and go to infinite loop. Since taskscheduleR detects R script is still working, next task doesn't start. I am looking a way if execution of R…