I have a problem with bash code chunks in RStudio Server on Linux Ubuntu 18.04.
Specifically, I would like the
.bashrc to be sourced in each bash code chunk, both to define the
$PATH and for running some scripts in the
None of the following two options works for me:
source ~/.bashrcinside the bash chunk
Note that on Mac OS the latter works fine.
engine.opts='-i' does the job, but it also returns warnings that cannot be hidden with
bash: cannot set terminal process group (19193): Inappropriate ioctl for device bash: no job control in this shell
As a last option, I now resourced to creating a text file called
~/rpath where I put my path definition and the scripts I need to be run. This file can actually be sourced inside the bash code chunk. However I would prefer a cleaner solution.
Can anybody help me with that?
all the best,