简体   繁体   中英

How to run multiple rscript in a sequence?

I'm wondering if there is a way to run rscript within another script? like we do in Java

For example:- I have script-A, and script-b, so when I run script-b it should run script-a first automatically.

You can use the source() function to run code in another file. So at the top of your script-b, just put source('path/to/script-A.R') .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM