Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (13 sloc) 203 Bytes

Pass variables to bash scripts

Use Sys.setenv():

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

Now we write a bash code chunk:

echo $EXAMPLES
## example/path

It works.