search for: an_env_var

Displaying 1 result from an estimated 1 matches for "an_env_var".

2010 Mar 29
3
one way to write scripts in R
...i+1]=parts[i+1] } text=pp(collap,collapse="") res[bt[j]]=text } # for j } #end if length(bt) res } # # now demonstrate the use of ppp() in a scripting context: # today="date" month=3 year=2010 show=list() show$syntax = 43 Sys.setenv(AN_ENV_VAR="greetings (I'm an env var!)") demo=ppp("Getting $AN_ENV_VAR from the environment, on `$today`, substituting ${show$syntax} in named lists is also possible. `cal $month $year| head` ") cat("here's the demo output\n") cat(demo,sep="\n") ## # output...