Unique Paths between RStudio Notebook and (RStudio) Terminal

rmarkdown
rnotebook

#1

I have greatly enjoyed how easy it is to switch between bash and r commands while using Rstudio Notebook/RMarkdown.

However I have struggled because the path that is searched when I run a bash command from inside a Rstudio Notebook

bash
echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Library/TeX/texbin

Is different than my path when I execute a command from the terminal (whether inside Rstudio or directly from my computer).

bash
echo $PATH
/home/greg/bin:/home/greg/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin

Can someone please point me to a reference where I can learn how the path for Rstudio Notebook is created and where I can edit it.

Thanks