Quantcast

Argument input

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Argument input

SreenathRaju
I want to take two command line arguments for the script.Both the arguments are file locations or path of the file.How can i do this
args <- commandArgs(TRUE)
Filename <- args[1]
saveloc <- args[2]

biom.file <-  args[1]
my.data <- import_biom(BIOMfilename = biom.file)
ng("args[2]\\tree_plot5.png",units="cm",width=30,height=25,res=300)
Is it right ? or any other solution is there? Please help me
Loading...