yonicd / covrpage

Create a summary readme for the testthat subdirectory to communicate with potential users
https://yonicd.github.io/covrpage/
Other
52 stars 7 forks source link

Error with `covrpage()` #57

Closed Bisaloo closed 5 years ago

Bisaloo commented 5 years ago

Hi,

I tried to use covrpage() on several of my packages and it always ends up failing with the same message:

Quitting from lines 64-65 (_covrpage.Rmd) Error in set_makevars(new, path, makevars_file, assignment = assignment) : Multiple results for CXXFLAGS found, something is wrong.FALSE

Am I missing something or is it broken?

yonicd commented 5 years ago

Thank you for trying the package. Which repository are you trying to render on?

Bisaloo commented 5 years ago

I tried on lightr and rromeo.

yonicd commented 5 years ago

Can you attach the session_info() please

Bisaloo commented 5 years ago
─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value                       
 version  R version 3.6.0 (2019-04-26)
 os       Ubuntu 16.04.6 LTS          
 system   x86_64, linux-gnu           
 ui       RStudio                     
 language en_US                       
 collate  en_US.UTF-8                 
 ctype    en_US.UTF-8                 
 tz       Europe/Paris                
 date     2019-07-04                  

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version    date       lib source                                       
 assertthat    0.2.1      2019-03-21 [1] CRAN (R 3.6.0)                               
 cli           1.1.0      2019-03-19 [1] CRAN (R 3.6.0)                               
 covr        * 3.2.1      2018-10-18 [1] CRAN (R 3.6.0)                               
 covrpage      0.0.70     2019-06-18 [1] Github (metrumresearchgroup/covrpage@d7e9c32)
 crayon        1.3.4      2017-09-16 [1] CRAN (R 3.6.0)                               
 curl          3.3        2019-01-10 [1] CRAN (R 3.6.0)                               
 digest        0.6.19     2019-05-20 [1] CRAN (R 3.6.0)                               
 evaluate      0.14       2019-05-28 [1] CRAN (R 3.6.0)                               
 git2r         0.25.2     2019-03-19 [1] CRAN (R 3.6.0)                               
 htmltools     0.3.6      2017-04-28 [1] CRAN (R 3.6.0)                               
 knitr       * 1.23       2019-05-18 [1] CRAN (R 3.6.0)                               
 lazyeval      0.2.2      2019-03-15 [1] CRAN (R 3.6.0)                               
 lightr      * 0.0.0.9000 2019-06-18 [1] local                                        
 magrittr    * 1.5        2014-11-22 [1] CRAN (R 3.6.0)                               
 packrat       0.5.0      2018-11-14 [1] CRAN (R 3.6.0)                               
 pbmcapply     1.4.1      2019-04-01 [1] CRAN (R 3.6.0)                               
 R6            2.4.0      2019-02-14 [1] CRAN (R 3.6.0)                               
 Rcpp          1.0.1      2019-03-17 [1] CRAN (R 3.6.0)                               
 remotes       2.1.0      2019-06-24 [1] CRAN (R 3.6.0)                               
 rex           1.1.2      2017-10-19 [1] CRAN (R 3.6.0)                               
 rlang         0.4.0      2019-06-25 [1] CRAN (R 3.6.0)                               
 rmarkdown     1.13.6     2019-07-04 [1] Github (rstudio/rmarkdown@7b18786)           
 sessioninfo   1.1.1      2018-11-05 [1] CRAN (R 3.6.0)                               
 stringi       1.4.3      2019-03-12 [1] CRAN (R 3.6.0)                               
 stringr       1.4.0      2019-02-10 [1] CRAN (R 3.6.0)                               
 testthat    * 2.1.1      2019-04-23 [1] CRAN (R 3.6.0)                               
 whisker       0.3-2      2013-04-28 [1] CRAN (R 3.6.0)                               
 withr         2.1.2      2018-03-15 [1] CRAN (R 3.6.0)                               
 xfun          0.8        2019-06-25 [1] CRAN (R 3.6.0)                               
 xml2          1.2.0.9000 2019-06-19 [1] Github (HenrikBengtsson/xml2@618bc74)        
 yaml          2.2.0      2018-07-25 [1] CRAN (R 3.6.0)                               

[1] /home/hugo/R/x86_64-pc-linux-gnu-library/3.6
[2] /usr/local/lib/R/site-library
[3] /usr/lib/R/site-library
[4] /usr/lib/R/library
Bisaloo commented 5 years ago

Upon inspection of the ~/.R/Makevars file contents, I do indeed have two lines for CXXFLAGS. I don't think I have ever touched it though.

CXXFLAGS=-O3 -mtune=native -march=native
CXXFLAGS= -Wno-unused-variable -Wno-unused-function  -Wno-macro-redefined

CXXFLAGS+=-flto -Wno-unused-local-typedefs
yonicd commented 5 years ago

After resolving the local issue does the render run ok?

Bisaloo commented 5 years ago

Yes, it works fine if I delete the Makevars file. Thank you for your time & the package and sorry for the inconvenience.

I'll investigate a bit more to see if I changed anything I shouldn't have on my local machine or if the contents of the Makevars file are normal, in which case I'll open an issue in withr.