You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using install.packages("httpuv", type="source") to install on a machine that uses a .Rprofile or Rprofile.site file that prints to the console:
.First <- function() {
cat("Custom .Rprofile")
}
The build fails with a No such file or directory message, and the problem line is
g++ -m32 -shared -s -static-libgcc -o httpuv.dll tmp.def RcppExports.o filedatasource-unix.o filedatasource-win.o http.o httpuv.o md5.o set_invalid_parameter.o uvutil.o websockets-base.o websockets-hixie76.o websockets-hybi03.o websockets-ietf.o websockets.o Custom .Rprofile ./libuv/libuv.a ./http-parser/http_parser.o ./sha1/sha1.o ./base64/base64.o -lWs2_32 -lkernel32 -lpsapi -liphlpapi -Ld:/RCompile/r-compiling/local/local320/lib/i386 -Ld:/RCompile/r-compiling/local/local320/lib -LC:/PROGRA~1/R/R-32~1.0/bin/i386 -lR
g++.exe: error: Custom: No such file or directory
g++.exe: error: .Rprofile: No such file or directory
It appears that the cat output from the .Rprofile on this machine is being inserted into the g++ command. After removing the cat call, the library installs without error.
I've been able to reproduce this error on both windows and linux machines. This may also be related to #11.
The text was updated successfully, but these errors were encountered:
If you have a cat statement in your .Rprofile, then every time R or Rscript is invoked, it'll print that message to the screen. I suggest modifying your .Rprofile so that the cat is only run in interactive sessions. For example:
I'm using
install.packages("httpuv", type="source")
to install on a machine that uses a .Rprofile or Rprofile.site file that prints to the console:The build fails with a
No such file or directory
message, and the problem line isIt appears that the
cat
output from the .Rprofile on this machine is being inserted into the g++ command. After removing thecat
call, the library installs without error.I've been able to reproduce this error on both windows and linux machines. This may also be related to #11.
The text was updated successfully, but these errors were encountered: