microsoft/microsoft-r-open

MRO 4.0.2 Rscript.exe displays initial messages

Opened this issue · 4 comments

Though Rscript.exe should be quiet, MRO 4.0.2 Rscript.exe displays initial messages like below.

image

This causes some errors when compiling a package from source.
Like this case:

PKG_CPPFLAGS += $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::CxxFlags()")

On CentOS, after fixing the following file, Rscript do not display Initail messages.
/opt/microsoft/ropen/4.0.2/lib64/R/etc/Rprofile.site

I don't know the location in windows.
Try to find Rprofile.site

before

...
quiet <- any(match(c("-q", "--silent", "--quiet", "--slave"), commandArgs()), na.rm=TRUE)
...

after

...
quiet <- any(match(c("-q", "--silent", "--quiet", "--slave", "--no-echo"), commandArgs()), na.rm=TRUE)
...
cap0 commented

it works for me with '--no-echo' with two dashes before no-echo

Thanks for your comment
I fixed it.

cap0 commented

Is there any other way than change the Rprofile.site?