Pass variables to bash scripts

Use Sys.setenv():

Sys.setenv(EXAMPLES = 'example/path')

Now we write a bash code chunk:

echo $EXAMPLES

It works.



Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on May 20, 2021, 5:08 p.m.