bnosac / taskscheduleR

Schedule R scripts/processes with the Windows task scheduler.
331 stars 72 forks source link

Question - Why copy Rscript to a new location #86

Closed vidarsumo closed 2 years ago

vidarsumo commented 2 years ago

Hello and thank you for a wonderful package.

I have one question. When scheduling an RScript I have to select a location where RScripts will be copied to schedule

image

What is considered as a best practice here? Normally I change this location to where the RScript is located right now and I find it strange, if the RScript is a part of a larger project to copy this script to another location.

jwijffels commented 2 years ago

The logic is to put the script at a deployment location. If you don't want this behaviour, select the Rscript repo the same location as where your script is located or use the functions taskscheduler_create directly without the RStudio addin Best practices depend on your own way of structuring your code. Up to you.