[R-pkg-devel] Different behavior from devtools::check and install.packages() under Linux and Windows

Steve Gutreuter @gutreuter @end|ng |rom gm@||@com
Tue Dec 14 14:48:23 CET 2021


I have an R package that completes devtools::check() without errors, 
warnings or notes running under Linux Mint, so I thought that all was 
well.  Everything works as expected when the package is installed on the 
Linux box from GitHub.

However, when I attempt to install it on a Windows box I get:

R> devtools::install_github("sgutreuter/screenr")
Downloading GitHub repo sgutreuter/screenr using HEAD
Error: Failed to install 'screenr' from GitHub:
   Multiple results for CXX11FLAGS found, something is wrong.FALSE

Next I tried devtools::check on clone on that same Windows box, and I gott:

R> devtools::check()
i Updating screenr documentation
i Loading screenr
Writing NAMESPACE
Writing NAMESPACE
-- Building --------------------------------------------------------- 
screenr --
Setting env vars:
* CFLAGS    : -Wall -pedantic -fdiagnostics-color=always
* CXXFLAGS  : -Wall -pedantic -fdiagnostics-color=always
* CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
--------------------------------------------------------------------------------
Error in set_makevars(.new, .path, makevars_file, assignment = 
.assignment) :
   Multiple results for CXX11FLAGS found, something is wrong.FALSE

The strange (to me) thing is that the package is 100% R, so I don't 
understand why C compiler flags are even in play.  Earlier versions 
worked as expected under both Linux and Windows.

Any hints?

Thanks!

-- 
Steve Gutreuter



More information about the R-package-devel mailing list