I cannot load my dyld libraries in R while it works in command line.
I ran system('echo DYLM_LIBRARY_PATH')
in R and it returns nothing. This happens to both RStudio and R.
But when I ran echo DYLM_LIBRARY_PATH
on terminal, it returns
/Users/arthur/ImageMagick-7.0.7/lib/
.
Any ideas?
I'm not on a Mac at the moment, but it doesn't appear that you've told R you'd want that to capture any of the output anyway.
Let's fix that:
system('echo DYLM_LIBRARY_PATH', intern = T)
Proof using something I can run on my side:
head(system('ls') # returns nothing
head(system('ls', intern = T)) # works
[1] "01_02_rawAndProcessedData.pdf" "01_06_readingExcelFiles.pdf" "01_07_readingXML.pdf" "02_02_readingHDF5.pdf" "02_03_readingFromTheWeb.pdf" [6] "02_04_readingFromAPIs.pdf"