Thanks Gabor. Yes, this was my faulty syntax. It appears to be transferring environmental variables fine and the runs as expected on debian-gcc-devel replicating the output from the CRAN checks on this system, even though the environmental variables do not print in the log.
________________________________ From: G��bor Cs��rdi <csardi.ga...@gmail.com> Sent: Tuesday, November 20, 2018 7:18:07 AM To: Oswald, Stephen A Cc: R Package Devel Subject: Re: [R-pkg-devel] recreating pretest Error in debian platform You are missing an underscore. This works for me for a package that I just added an error to: rhub::check(env_vars = c("_R_CHECK_LENGTH_1_CONDITION_" = "verbose"), platform = "debian-gcc-devel", email = "csardi.ga...@gmail.com") �� Building package �� Uploading package [...] E checking examples (788ms) Running examples in ��dotenv-Ex.R�� failed The error most likely occurred in: > ### Name: load_dot_env > ### Title: Load environment variables from the specified file > ### Aliases: load_dot_env > > ### ** Examples > > # Remove, if it exists > Sys.unsetenv("dotenvexamplefoo") > Sys.getenv("dotenvexamplefoo") [1] "" > > # Load from a file > tmp <- tempfile() > cat("dotenvexamplefoo=bar\n", file = tmp) > load_dot_env(tmp) > Sys.getenv("dotenvexamplefoo") [1] "bar" > > # Clean up > unlink(tmp) > > if (c(TRUE, FALSE)) print("oops") ----------- FAILURE REPORT -------------- --- failure: the condition has length > 1 --- --- srcref --- : --- package (from environment) --- [...] Gabor On Tue, Nov 20, 2018 at 11:35 AM Oswald, Stephen A <sa...@psu.edu> wrote: > > > > Dear All, > > I am seeking direction on how to successfully recreate an CRAN check error > (see email below) for the debian gcc platform (see attached log). I'm pretty > confident that there is still an error associated with my code calling if() > with a vector of length 2 or more. However, the code is long and as there are > likely multiple incidences, I really want to be able to recreate this error > myself so I do not waste CRAN time resubmitting each time I fix one incidence. > > I have tried multiple approaches to recreate this error without success. > These include: > 1) Running rhub::check while specifying environmental variables suggested by > Brian Ripley > ('_R_CHECK_LENGTH_1_CONDITION'="package:_R_CHECK_PACKAGE_NAME_,abort,verbose") > on the platform "debian-gcc-devel". Check proceeds with no errors but I > suspect the environmental variables are not being correctly specified (see > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fr-hub%2Frhub%2Fissues%2F174&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=qevoVXPaFbV4wrBYOzu8DKudD1yUFWerZhX3djiGHp4%3D&reserved=0) > > 2) Running devtools::check() in Rstudio 1.0.143. But as I am running on > windows, the code compiles OK. > My system: > > platform x86_64-w64-mingw32 > arch x86_64 > os mingw32 > system x86_64, mingw32 > status Under development (unstable) > major 3 > minor 6.0 > year 2018 > month 10 > day 15 > svn rev 75443 > language R > version.string R Under development (unstable) (2018-10-15 r75443) > nickname Unsuffered Consequences > > 3) I have set up a GitHub profile and repository for the current code of my > package FlexParamCurve v 1.5-5 > (https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsao10%2FFlexParamCurve1.5-5&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=VsXnWzBD61IDme8V7LMXgcOXK3MQD%2F4l5orRTwI0y90%3D&reserved=0). > I have then used Travis to build and check it > (https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftravis-ci.org%2Fsao10%2FFlexParamCurve1.5-5%2Fjobs%2F457270859&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=%2Box09S5pbO%2FJFWGJ65jdYDJQoOdNAONhcx4R231ug0A%3D&reserved=0) > but, I am pretty certain that my environmental variables are not > transferring. I tried setting them as Global Environmental Variables and also > in my .travis.yml file. My config was: > > { > "os": "linux", > "dist": "trusty", > "sudo": false, > "cache": "packages", > "group": "stable", > "language": "r", > "global_env": "_R_CHECK_LENGTH_1_CONDITION = > \"package:_R_CHECK_PACKAGE_NAME_,abort,verbose\" R_C_BOUNDS_CHECK = yes > _R_CHECK_FORCE_SUGGESTS_ = false" > } > > > and my .travis.yml file was: > > language: R > cache: packages > sudo: false > env: > global: > - _R_CHECK_LENGTH_1_CONDITION = > "package:_R_CHECK_PACKAGE_NAME_,abort,verbose" > - R_C_BOUNDS_CHECK = yes > - _R_CHECK_FORCE_SUGGESTS_ = false > > > One possibility I have yet to explore is potentially running debian from a > flash drive but I'm not sure whether my tool chains would need to change and > it seems a major undertaking. Currently my tool chain looks like this: > > C:\Rtools\bin;C:\Rtools\mingw_64\bin;C:\Strawberry\c\bin;C:\Program Files > (x86)\MiKTeX 2.9\miktex\bin; > H:\R\R-devel\bin\x64;C:\Strawberry\perl\site\bin;C:\Strawberry;C:\Program > Files (x86)\Common Files\Adobe\AGL;C:\Program Files > (x86)\Calibre2\;C:\Program Files (x86)\Skype\Phone\ > > and I am running > Rtools version 3.5.0.4 > MiKTeX 2.9 > > R Under development (unstable) (2018-10-15 r75443) > > Thank you for any direction you may be able to offer. > > Steve. > > > > > > ________________________________ > From: lig...@statistik.tu-dortmund.de <lig...@statistik.tu-dortmund.de> > Sent: Saturday, November 10, 2018 2:21 AM > To: Oswald, Stephen A > Cc: cran-submissi...@r-project.org > Subject: [CRAN-pretest-archived] CRAN submission FlexParamCurve 1.5-4 > > Dear maintainer, > > package FlexParamCurve_1.5-4.tar.gz does not pass the incoming checks > automatically, please see the following pre-tests: > Windows: > <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2FFlexParamCurve_1.5-4_20181110_081104%2FWindows%2F00check.log&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=E67idaroiK%2BTuZ4jRlWZhMlJ2UYGeh5wEZMwKzKmBVY%3D&reserved=0> > Status: 3 NOTEs > Debian: > <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2FFlexParamCurve_1.5-4_20181110_081104%2FDebian%2F00check.log&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=MNcLOBouQ265sijNXFZCAM1FqiaxETLBehHeCAvUX%2Bs%3D&reserved=0> > Status: 1 ERROR, 1 NOTE > > Last released version's CRAN status: OK: 2 > See: > <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2FCRAN.R-project.org%2Fweb%2Fchecks%2Fcheck_results_FlexParamCurve.html&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=qxiQhe3jywSUzJcXcLaZC9O1M5%2FZVd5UYs9tTQgbrWo%3D&reserved=0> > > CRAN Web: > <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcran.r-project.org%2Fpackage%3DFlexParamCurve&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=apsGe7ZxfB2fgOvZNFlTrM47Z6FeLu0t9UiFrVyp6XY%3D&reserved=0> > > Please fix all problems and resubmit a fixed version via the webform. > If you are not sure how to fix the problems shown, please ask for help on the > R-package-devel mailing list: > <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-package-devel&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=xjTLWTycdb7XL03lRY5It007uqqI7o7LbzQCObedQc4%3D&reserved=0> > If you are fairly certain the rejection is a false positive, please reply-all > to this message and explain. > > More details are given in the directory: > <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2FFlexParamCurve_1.5-4_20181110_081104%2F&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=13z8YFP0RGJM1s%2FXkFZH7ecf%2BZXLa83Oj9Jdf%2B1mp0k%3D&reserved=0> > The files will be removed after roughly 7 days. > > No strong reverse dependencies to be checked. > > Best regards, > CRAN teams' auto-check service > ______________________________________________ > R-package-devel@r-project.org mailing list > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-package-devel&data=02%7C01%7Csao10%40psu.edu%7Cd7e1846aeb0743b871d608d64ee2480b%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636783131119236418&sdata=xjTLWTycdb7XL03lRY5It007uqqI7o7LbzQCObedQc4%3D&reserved=0 [[alternative HTML version deleted]]
______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel