简体   繁体   中英

Verbose output for R package building

I am trying to compile a package using:

devtools::build()

At some point C/C++ compilation errors crop up; however, I'm having difficulty debugging them because I don't know what command was used to compile them. Is there a way to get the build commands to generate verbose output similar to make or ninja -v where each file's compilation command is listed?

If you use R CMD INSTALL at the command line, you'll see all the commands and compile errors.

I wouldn't expect devtools::build to be compiling source, unless you've specified binary = TRUE . You'd use devtools::install for that, and it includes the argument quiet , which defaults to TRUE : so set it to FALSE and you should see the compile steps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM