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,330 points
40 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,280 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
28 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
12 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 26 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
25 views
0 votes
3 answers

Python vs. R for data science

Hello Well there are lots of difference between ...READ MORE

answered Mar 30 in Data Analytics by MrBoot
• 1,210 points
65 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,020 points
13 views
0 votes
1 answer

What are the steps in data analysis process?

Need to follow these steps: Data requirements – ...READ MORE

answered Nov 14, 2018 in Data Analytics by Maverick
• 10,020 points
23 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,280 points
55 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,280 points
17 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.