This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
r_programming [2015/02/20 11:44] zuo |
r_programming [2015/04/06 16:12] (current) zuo |
||
|---|---|---|---|
| Line 42: | Line 42: | ||
| </code> | </code> | ||
| + | ===Commandline input=== | ||
| + | |||
| + | In the file: | ||
| + | |||
| + | commandlineArgs(TRUE) | ||
| + | val <- args[[1]] | ||
| + | var2 <- as.character(args[[2]]) | ||
| + | |||
| + | In the commandline: | ||
| + | |||
| + | R CMD BATCH "--args 0.05 test" file.R file.Rout | ||
| + | | ||
| + | ===Put an expression in figure label=== | ||
| + | |||
| + | Include a variable "lambdapr": | ||
| + | ..., main = bquote(paste("Sil_Y, ", lambda[p] / lambda[w]== .(lambdapr))), ... | ||
| + | | ||
| + | Otherwise | ||
| + | ..., main = expression(lambda[p] %/% lambda[w] == 1), ... | ||