Can I schedule an R program to run on a daily basis?

+1 vote
I have created a R program to collect and update information from a local and online source, which are updated frequently.These sources are fixed, and so there is no argument to pass to the program. I'm now trying to set this as a scheduled daily task. I assume that it is not possible for .r file.
Is there any way to compile the r file to executable file? such as .exe, I don't need the executable file to be standalone, I can keep R in my computer.
Jan 25, 2019 in Data Analytics by Sophie may
• 9,900 points
71 views

1 answer to this question.

0 votes

Make use of the standard operating system facilities to execute R with an appropriate argument. 

Example: if you add the functions you need to .Rprofile, you can do

R --no-save --no-restore -q -e 'MyFunc(my,args)'

Hope this helped

answered Jan 25, 2019 by Tyrion anex
• 8,320 points

Related Questions In Data Analytics

0 votes
1 answer

How can I append rows to an R data frame?

Consider a dataSet i.e cicar(present under library ...READ MORE

answered May 8, 2018 in Data Analytics by zombie
• 3,750 points
458 views
0 votes
1 answer

How can I use R to list all files with a specified extension ?

fls <- list.files(pattern = "\\.dbf$") $ at the ...READ MORE

answered May 10, 2018 in Data Analytics by zombie
• 3,750 points
47 views
0 votes
1 answer

How can I import a file in R without giving the destination/file path to the specified file?

You can use the window explorer to ...READ MORE

answered Aug 28, 2018 in Data Analytics by Anmol
• 3,680 points

edited Aug 28, 2018 by Vardhan 68 views
0 votes
1 answer

How can I convert a factor variable to numeric in R ?

A factor variable can be converted to ...READ MORE

answered Sep 18, 2018 in Data Analytics by shams
• 3,580 points
67 views
+9 votes
3 answers

Which is a better initiative to learn data science: Python or R?

Well it truly depends on your requirement, If ...READ MORE

answered Aug 8, 2018 in Data Analytics by Anmol
• 3,680 points
97 views
0 votes
4 answers

Python vs. R for data science

I would say both Python and R ...READ MORE

answered Aug 1, 2019 in Data Analytics by briny
144 views
0 votes
1 answer

Why is data cleaning needed?

Data cleaning is the fourth step in ...READ MORE

answered Nov 14, 2018 in Data Analytics by Maverick
• 10,800 points
47 views
0 votes
2 answers

What are the steps in data analysis process?

Well explained @Maverick, In simple words the ...READ MORE

answered Aug 22, 2019 in Data Analytics by anonymous
• 32,440 points
287 views
0 votes
1 answer

R programming: How to pass variables from a r program to mysql function?

To include the R variables called start.date and end.date, you can use paste to ...READ MORE

answered Dec 28, 2018 in Data Analytics by Tyrion anex
• 8,320 points
92 views
0 votes
1 answer

How to run a file with .r extension?

Follow the below command: C:\Program Files\R\R-3.1.1\bin\Rscript.ex ...READ MORE

answered Apr 29, 2019 in Data Analytics by Tyrion anex
• 8,320 points
67 views