r-windows-Automatic Script execution

Source: Internet
Author: User

Sometimes we need to use R to do operations or models, we need to store the results in a database, even if there is no online Linux machine, Windows can also operate this function.

Be clear about where your R.exe is stored, such as C:\Program Files\r\r-3.4.0\bin\x64\r.exe

Store the script you want to run in a specified location, such as D:\run_etl. R

Run_etl. R is the script to run

Write the txt text on

"C:\Program files\r\r-3.4.0\bin\x64\r.exe" CMD BATCH "D:\run_etl. R

and stored in the bat format called ' Timed tasks '. BAT '

Then use the scheduled ' Task Scheduler ' in Windows, the normal Start menu, and then step by step to write or select the relevant information, and finally select the task can be

r-windows-Automatic Script execution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.