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
• 10,550 points
146 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,660 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,790 points
9,531 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,790 points
294 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 Abhi
• 3,720 points

edited Aug 28, 2018 by Vardhan 519 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,660 points
280 views
+10 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 Abhi
• 3,720 points
352 views
+1 vote
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
488 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,840 points
199 views
+1 vote
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,990 points
744 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,660 points
402 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.e ...READ MORE

answered Apr 29, 2019 in Data Analytics by Tyrion anex
• 8,660 points
314 views