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,620 points
655 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,700 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 9, 2018 in Data Analytics by zombie
• 3,790 points
10,768 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 11, 2018 in Data Analytics by zombie
• 3,790 points
891 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 2,993 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 19, 2018 in Data Analytics by shams
• 3,670 points
3,793 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 9, 2018 in Data Analytics by Abhi
• 3,720 points
1,627 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
2,181 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
982 views
+1 vote
2 answers

What are the steps in data analysis process?

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

answered Aug 23, 2019 in Data Analytics by anonymous
• 33,030 points
2,975 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,700 points
1,333 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 30, 2019 in Data Analytics by Tyrion anex
• 8,700 points
1,054 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP