This might turn out to be a rather trivial question, but has me baffled for quite some time now. It all started when I installed the universal document converter pandoc
and added it to my path. So when I do echo $PATH
on the default terminal on my Mac OS X, it shows pandoc
and I am able to execute it.
However, when I tried invoking the same in an R session using system(pandoc --version)
, it could not recognize pandoc
. Further checking revealed that system('echo $PATH')
does not return the same path that I got on the terminal.
Can anyone help me with what is going on? I like to do all my work on RStudio
, and hence would prefer if I can use pandoc
directly from within. Hence the need to figure this out.