I'm using Ubuntu 18.04, R 3.6.3, and a recent version of RStudio. I have an executable named brittany
. When I run which brittany
in a terminal, it is found. When I run R in a terminal and I type Sys.which("brittany")
, it is found. But when I type Sys.which("brittany")
in the RStudio console, it is not found. Why? The path of this file is /home/stla/.local/bin/brittany
.
I've found a workaround: if I do a symbolic link to this file in a folder that does not contain a period in its path, the symbolic link is found and I can execute it. Looks like a RStudio bug.