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 in Data Analytics by Sophie may
• 9,530 points
52 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 by Tyrion anex
• 8,270 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,690 points
47 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,690 points
25 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,620 points

edited Aug 28, 2018 by Vardhan 46 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
39 views
0 votes
4 answers

Python vs. R for data science

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

answered Aug 1 in Data Analytics by briny
106 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,040 points
21 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 in Data Analytics by anonymous
• 25,900 points
68 views
+1 vote
2 answers
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,270 points
67 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 in Data Analytics by Tyrion anex
• 8,270 points
29 views