Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing _R_CHECK_* env vars concatenated not overridden #1914

Closed
infotroph opened this issue Nov 2, 2018 · 1 comment
Closed

Existing _R_CHECK_* env vars concatenated not overridden #1914

infotroph opened this issue Nov 2, 2018 · 1 comment

Comments

@infotroph
Copy link
Contributor

With no env vars set

library("devtools")
check()
[...runs as expected...]
Updating rcmdcheck documentation
Writing NAMESPACE
Loading rcmdcheck
Writing NAMESPACE
── Building ─────────────────────────────────────────────────────── rcmdcheck ──
Setting env vars:
● CFLAGS    : -Wall -pedantic -fdiagnostics-color=always
● CXXFLAGS  : -Wall -pedantic -fdiagnostics-color=always
● CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/Users/chrisb/github_forks/rcmdcheck/DESCRIPTION’ ...
─  preparing ‘rcmdcheck’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘rcmdcheck_1.3.0.9000.tar.gz’
   
── Checking ─────────────────────────────────────────────────────── rcmdcheck ──
Setting env vars:
● _R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
● _R_CHECK_CRAN_INCOMING_       : FALSE
● _R_CHECK_FORCE_SUGGESTS_      : FALSE
── R CMD check ─────────────────────────────────────────────────────────────────
─  using log directory ‘/private/var/folders/qr/mbw8xxpd45jdv_46b27914280000gn/T/RtmpFyTxx4/rcmdcheck.Rcheck’ (395ms)
─  using R version 3.4.3 (2017-11-30)
─  using platform: x86_64-apple-darwin15.6.0 (64-bit)
─  using session charset: UTF-8
─  using options ‘--no-manual --as-cran’
✔  checking for file ‘rcmdcheck/DESCRIPTION’
─  this is package ‘rcmdcheck’ version ‘1.3.0.9000’
─  package encoding: UTF-8
✔  checking package namespace information
✔  checking package dependencies (713ms)
✔  checking if this is a source package
✔  checking if there is a namespace
✔  checking for executable files (379ms)
✔  checking for hidden files and directories
✔  checking for portable file names
✔  checking for sufficient/correct file permissions
✔  checking whether package ‘rcmdcheck’ can be installed (1.1s)
✔  checking installed package size ...
✔  checking package directory ...
✔  checking DESCRIPTION meta-information ...
✔  checking top-level files
✔  checking for left-over files
✔  checking index information
✔  checking package subdirectories ...
✔  checking R files for non-ASCII characters ...
✔  checking R files for syntax errors ...
✔  checking whether the package can be loaded (368ms)
✔  checking whether the package can be loaded with stated dependencies ...
✔  checking whether the package can be unloaded cleanly ...
✔  checking whether the namespace can be loaded with stated dependencies ...
✔  checking whether the namespace can be unloaded cleanly (369ms)
✔  checking dependencies in R code (426ms)
✔  checking S3 generic/method consistency (907ms)
✔  checking replacement functions ...
✔  checking foreign function calls (415ms)
✔  checking R code for possible problems (3.8s)
✔  checking Rd files ...
✔  checking Rd metadata ...
✔  checking Rd line widths ...
✔  checking Rd cross-references ...
✔  checking for missing documentation entries (343ms)
✔  checking for code/documentation mismatches (1s)
✔  checking Rd \usage sections (1.1s)
✔  checking Rd contents ...
✔  checking for unstated dependencies in examples ...
✔  checking examples (699ms)
✔  checking for unstated dependencies in ‘tests’ ...
─  checking tests ...
✔  Running ‘testthat.R’
   
   
── R CMD check results ─────────────────────────────── rcmdcheck 1.3.0.9000 ────
Duration: 15.3s

0 errors ✔ | 0 warnings ✔ | 0 notes ✔

With an already-set env var

Sys.setenv("_R_CHECK_CRAN_INCOMING_" = TRUE)
check()
"cannot coerce ‘FALSE TRUE’ to logical"
Updating rcmdcheck documentation
Writing NAMESPACE
Loading rcmdcheck
Writing NAMESPACE
── Building ─────────────────────────────────────────────────────── rcmdcheck ──
Setting env vars:
● CFLAGS    : -Wall -pedantic -fdiagnostics-color=always
● CXXFLAGS  : -Wall -pedantic -fdiagnostics-color=always
● CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/Users/chrisb/github_forks/rcmdcheck/DESCRIPTION’ ...
─  preparing ‘rcmdcheck’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘rcmdcheck_1.3.0.9000.tar.gz’
   
── Checking ─────────────────────────────────────────────────────── rcmdcheck ──
Setting env vars:
● _R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
● _R_CHECK_CRAN_INCOMING_       : FALSE
● _R_CHECK_FORCE_SUGGESTS_      : FALSE
── R CMD check ─────────────────────────────────────────────────────────────────
─  using log directory ‘/private/var/folders/qr/mbw8xxpd45jdv_46b27914280000gn/T/RtmpFyTxx4/rcmdcheck.Rcheck’ (405ms)
   Warning in config_val_to_logical(check_incoming) :
     cannot coerce ‘FALSE TRUE’ to logical
   Error in if (check_incoming) check_CRAN_incoming(!check_incoming_remote) : 
     missing value where TRUE/FALSE needed
   Execution halted
─  using R version 3.4.3 (2017-11-30)
─  using platform: x86_64-apple-darwin15.6.0 (64-bit)
─  using session charset: UTF-8
─  using options ‘--no-manual --as-cran’
✔  checking for file ‘rcmdcheck/DESCRIPTION’
─  this is package ‘rcmdcheck’ version ‘1.3.0.9000’
─  package encoding: UTF-8
── R CMD check results ─────────────────────────────── rcmdcheck 1.3.0.9000 ────
Duration: 545ms

0 errors ✔ | 0 warnings ✔ | 0 notes ✔

Workaround

To respect the upstream environment variable setting, unset the local one:

check(incoming=NULL)
[...runs as expected, complains about version number and Remotes field as expected...]
Updating rcmdcheck documentation
Writing NAMESPACE
Loading rcmdcheck
Writing NAMESPACE
── Building ─────────────────────────────────────────────────────── rcmdcheck ──
Setting env vars:
● CFLAGS    : -Wall -pedantic -fdiagnostics-color=always
● CXXFLAGS  : -Wall -pedantic -fdiagnostics-color=always
● CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/Users/chrisb/github_forks/rcmdcheck/DESCRIPTION’ ...
─  preparing ‘rcmdcheck’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘rcmdcheck_1.3.0.9000.tar.gz’
   
── Checking ─────────────────────────────────────────────────────── rcmdcheck ──
Setting env vars:
● _R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
● _R_CHECK_FORCE_SUGGESTS_      : FALSE
── R CMD check ─────────────────────────────────────────────────────────────────
─  using log directory ‘/private/var/folders/qr/mbw8xxpd45jdv_46b27914280000gn/T/RtmpFyTxx4/rcmdcheck.Rcheck’ (403ms)
─  using R version 3.4.3 (2017-11-30)
─  using platform: x86_64-apple-darwin15.6.0 (64-bit)
─  using session charset: UTF-8
─  using options ‘--no-manual --as-cran’
✔  checking for file ‘rcmdcheck/DESCRIPTION’
─  this is package ‘rcmdcheck’ version ‘1.3.0.9000’
─  package encoding: UTF-8
N  checking CRAN incoming feasibility ...
   Maintainer: ‘Gábor Csárdi <csardi.gabor@gmail.com>’
   
   Version contains large components (1.3.0.9000)
   
   Unknown, possibly mis-spelled, fields in DESCRIPTION:
     ‘Remotes’
✔  checking package namespace information ...
✔  checking package dependencies (745ms)
✔  checking if this is a source package
✔  checking if there is a namespace
✔  checking for executable files (386ms)
✔  checking for hidden files and directories
✔  checking for portable file names
✔  checking for sufficient/correct file permissions
✔  checking whether package ‘rcmdcheck’ can be installed (1.1s)
✔  checking installed package size
✔  checking package directory ...
✔  checking DESCRIPTION meta-information ...
✔  checking top-level files ...
✔  checking for left-over files
✔  checking index information
✔  checking package subdirectories ...
✔  checking R files for non-ASCII characters ...
✔  checking R files for syntax errors ...
✔  checking whether the package can be loaded (382ms)
✔  checking whether the package can be loaded with stated dependencies ...
✔  checking whether the package can be unloaded cleanly ...
✔  checking whether the namespace can be loaded with stated dependencies ...
✔  checking whether the namespace can be unloaded cleanly (381ms)
✔  checking use of S3 registration (371ms)
✔  checking dependencies in R code (427ms)
✔  checking S3 generic/method consistency (917ms)
✔  checking replacement functions (334ms)
✔  checking foreign function calls (422ms)
✔  checking R code for possible problems (3.9s)
✔  checking Rd files ...
✔  checking Rd metadata ...
✔  checking Rd line widths ...
✔  checking Rd cross-references ...
✔  checking for missing documentation entries (342ms)
✔  checking for code/documentation mismatches (1.1s)
✔  checking Rd \usage sections (1.1s)
✔  checking Rd contents ...
✔  checking for unstated dependencies in examples ...
✔  checking examples (660ms)
✔  checking for unstated dependencies in ‘tests’ ...
─  checking tests ...
✔  Running ‘testthat.R’
   
   See
     ‘/private/var/folders/qr/mbw8xxpd45jdv_46b27914280000gn/T/RtmpFyTxx4/rcmdcheck.Rcheck/00check.log’
   for details.
   
   
── R CMD check results ─────────────────────────────── rcmdcheck 1.3.0.9000 ────
Duration: 16.4s

❯ checking CRAN incoming feasibility ... NOTE
  Maintainer: ‘Gábor Csárdi <csardi.gabor@gmail.com>’
  
  Version contains large components (1.3.0.9000)
  
  Unknown, possibly mis-spelled, fields in DESCRIPTION:
    ‘Remotes’

0 errors ✔ | 0 warnings ✔ | 1 note ✖

Session info

session_info()
─ Session info ───────────────────────────────────────────────────────────────
setting  value                       
version  R version 3.4.3 (2017-11-30)
os       macOS High Sierra 10.13.6   
system   x86_64, darwin15.6.0        
ui       X11                         
language (EN)                        
collate  en_US.UTF-8                 
ctype    en_US.UTF-8                 
tz       Europe/Amsterdam            
date     2018-11-03                  

─ Packages ───────────────────────────────────────────────────────────────────
 ! package     * version    date       lib source                            
   assertthat    0.2.0      2017-04-11 [1] CRAN (R 3.4.0)                    
   backports     1.1.2      2017-12-13 [1] CRAN (R 3.4.3)                    
   base64enc     0.1-3      2015-07-28 [1] CRAN (R 3.4.0)                    
   callr         3.0.0      2018-08-24 [1] CRAN (R 3.4.4)                    
   cli           1.0.1      2018-09-25 [1] CRAN (R 3.4.3)                    
   commonmark    1.6        2018-09-30 [1] CRAN (R 3.4.3)                    
   crayon        1.3.4      2017-09-16 [1] CRAN (R 3.4.1)                    
   debugme       1.1.0      2017-10-22 [1] CRAN (R 3.4.2)                    
   desc          1.2.0      2018-05-01 [1] CRAN (R 3.4.4)                    
   devtools    * 2.0.1.9000 2018-11-02 [1] Github (r-lib/devtools@64cf07c)   
   digest        0.6.18     2018-10-10 [1] CRAN (R 3.4.3)                    
   fs            1.2.6      2018-08-23 [1] CRAN (R 3.4.4)                    
   glue          1.3.0      2018-07-17 [1] CRAN (R 3.4.4)                    
   magrittr      1.5        2014-11-22 [1] CRAN (R 3.4.0)                    
   memoise       1.1.0      2017-04-21 [1] CRAN (R 3.4.0)                    
   pkgbuild      1.0.2      2018-10-16 [1] CRAN (R 3.4.3)                    
   pkgload       1.0.2      2018-10-29 [1] CRAN (R 3.4.3)                    
   prettyunits   1.0.2      2015-07-13 [1] CRAN (R 3.4.0)                    
   processx      3.2.0      2018-08-16 [1] CRAN (R 3.4.4)                    
   ps            1.2.0      2018-10-16 [1] CRAN (R 3.4.3)                    
   purrr         0.2.5      2018-05-29 [1] CRAN (R 3.4.4)                    
   R6            2.3.0      2018-10-04 [1] CRAN (R 3.4.3)                    
 P rcmdcheck   * 1.3.0.9000 2018-11-02 [?] Github (r-lib/rcmdcheck@dd8a372)  
   Rcpp          0.12.19    2018-10-01 [1] CRAN (R 3.4.4)                    
   remotes       2.0.2      2018-10-30 [1] CRAN (R 3.4.4)                    
   rlang         0.3.0.1    2018-10-25 [1] CRAN (R 3.4.3)                    
   roxygen2      6.1.0      2018-07-27 [1] CRAN (R 3.4.4)                    
   rprojroot     1.3-2      2018-01-03 [1] CRAN (R 3.4.3)                    
   rstudioapi    0.8        2018-10-02 [1] CRAN (R 3.4.3)                    
   sessioninfo   1.1.0.9001 2018-11-02 [1] Github (r-lib/sessioninfo@5b02efa)
   stringi       1.2.4      2018-07-20 [1] CRAN (R 3.4.4)                    
   stringr       1.3.1      2018-05-10 [1] CRAN (R 3.4.4)                    
   testthat    * 2.0.1      2018-10-13 [1] CRAN (R 3.4.3)                    
   usethis     * 1.4.0      2018-08-14 [1] CRAN (R 3.4.4)                    
   withr         2.1.2      2018-03-15 [1] CRAN (R 3.4.4)                    
   xml2          1.2.0      2018-01-24 [1] CRAN (R 3.4.3)                    
   xopen         1.0.0      2018-09-17 [1] CRAN (R 3.4.3)                    

[1] /Library/Frameworks/R.framework/Versions/3.4/Resources/library

 P ── Loaded and on-disk path mismatch.
@lock
Copy link

lock bot commented May 7, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators May 7, 2019
HughParsonage pushed a commit to HughParsonage/devtools that referenced this issue Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant