R language Command line arguments

Source: Internet
Author: User

? ? Batch drawing task, need to pass several parameters in R, before the practice is to create a rscript in Perl each task, this way super cool, in the group to learn the R @argv call way, almost to achieve the requirements of the bulk task:

Args <-Commandargs ()

This method passes the environment variable into a atomic vector, where the values are sequentially (starting with 1) as follows:

ARGS[1] = The library referenced by the current R?

ARGS[2] =-slave

ARGS[3] =-no-restore

ARGS[4] =--file=r script Name

ARGS[5] =-args

The environment variable passed in from 6 onwards.

Batch mapping, you can write good R script, and reserved input files and output image files, such as environmental variables, and then batch call

R language Command line arguments

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.