Running R from RStudio on macOS 11.2.1
When calling cargo from R, as when using the rextendr package or trying to install helloextendr, I receive the errors sh: cargo: command not found and make: cargo: command not found, respectively. However, from the terminal, calling cargo works as expected.
One can see the difference from below.
In R cargo is not found:
> Sys.which("cargo")
# cargo
# ""
From a terminal cargo is found
% which cargo
$HOME/.cargo/bin/cargo