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

run_donttest and run_dontrun do not work with fresh #2287

Closed
cimentadaj opened this issue Oct 12, 2020 · 1 comment
Closed

run_donttest and run_dontrun do not work with fresh #2287

cimentadaj opened this issue Oct 12, 2020 · 1 comment

Comments

@cimentadaj
Copy link

I'm using run_examples and I'm trying to run all examples in a fresh session. Seems that run and test are deprecated but are the only option to running all tests with fresh:

devtools::run_examples(fresh = TRUE)
#> Error in eval(substitute(function() devtools::run_examples(pkg = path,  : 
#>   argument "test" is missing, with no default

devtools::run_examples(run_donttest = TRUE, run_dontrun = TRUE, fresh = TRUE)
#> Error in eval(substitute(function() devtools::run_examples(pkg = path,  : 
#>   argument "test" is missing, with no default

devtools::run_examples(run = TRUE, test = TRUE, fresh = TRUE)
# works

# Note that this happens only when fresh = TRUE
devtools::run_examples(run_donttest = TRUE, run_dontrun = TRUE)
# Works

SI:

Session info ───────────────────────────────────────────────────────────────
 setting  value                       
 version  R version 4.0.2 (2020-06-22)
 os       Ubuntu 20.04.1 LTS          
 system   x86_64, linux-gnu           
 ui       X11                         
 language (EN)                        
 collate  en_US.UTF-8                 
 ctype    en_US.UTF-8                 
 tz       Europe/Berlin               
 date     2020-10-12Packages ───────────────────────────────────────────────────────────────────
 ! package           * version    date       lib
   assertthat          0.2.1      2019-03-21 [2]
   backports           1.1.10     2020-09-15 [2]
   bitops              1.0-6      2013-08-17 [2]
   callr               3.4.4      2020-09-07 [2]
   cli                 2.0.2      2020-02-28 [2]
   clipr               0.7.0      2019-07-23 [2]
   crayon              1.3.4      2017-09-16 [2]
   data.table          1.13.0     2020-07-24 [2]
   desc                1.2.0      2018-05-01 [2]
   devtools            2.3.2      2020-09-18 [2]
   digest              0.6.25     2020-02-23 [2]
   dplyr               1.0.2      2020-08-18 [2]
   ellipsis            0.3.1      2020-05-15 [2]
   evaluate            0.14       2019-05-28 [2]
   fansi               0.4.1      2020-01-08 [2]
 R fertestr            0.0.0.9000 <NA>       [?]
   fs                  1.5.0      2020-07-31 [2]
   gbRd                0.4-11     2012-10-01 [2]
   generics            0.0.2      2018-11-29 [2]
   glue                1.4.2      2020-08-27 [2]
   htmltools           0.5.0      2020-06-16 [2]
   knitr               1.30       2020-09-22 [2]
   lattice             0.20-41    2020-04-02 [4]
   lifecycle           0.2.0      2020-03-06 [2]
   lubridate           1.7.9      2020-06-08 [2]
   magrittr            1.5        2014-11-22 [2]
   memoise             1.1.0      2017-04-21 [2]
   minpack.lm          1.2-1      2016-11-20 [2]
   MortalityEstimate   0.9.10     2020-10-12 [1]
   MortalityLaws       1.8.5      2020-09-16 [2]
   pbapply             1.4-3      2020-08-18 [2]
   pillar              1.4.6      2020-07-10 [2]
   pkgbuild            1.1.0      2020-07-13 [2]
   pkgconfig           2.0.3      2019-09-22 [2]
   pkgload             1.1.0      2020-05-29 [2]
   prettyunits         1.1.1      2020-01-24 [2]
   processx            3.4.4      2020-09-03 [2]
   ps                  1.3.4      2020-08-11 [2]
   purrr               0.3.4      2020-04-17 [2]
   R6                  2.4.1      2019-11-12 [2]
   rbibutils           1.3        2020-10-05 [2]
   Rcpp                1.0.5      2020-07-06 [2]
   RCurl               1.98-1.2   2020-04-18 [2]
   Rdpack              2.0        2020-10-06 [2]
   remotes             2.2.0      2020-07-21 [2]
   reprex              0.3.0      2019-05-16 [2]
   rlang               0.4.8      2020-10-08 [1]
   rmarkdown           2.4        2020-09-30 [2]
   roxygen2            7.1.1      2020-06-27 [2]
   rprojroot           1.3-2      2018-01-03 [2]
   rstudioapi          0.11       2020-02-07 [2]
   sessioninfo         1.1.1      2018-11-05 [2]
   stringi             1.5.3      2020-09-09 [2]
   stringr             1.4.0      2019-02-10 [2]
   testthat            2.3.2      2020-03-02 [2]
   tibble              3.0.4.9000 2020-10-12 [1]
   tidyr               1.1.2      2020-08-27 [2]
   tidyselect          1.1.0      2020-05-11 [2]
   usethis             1.6.3      2020-09-17 [2]
   vctrs               0.3.4      2020-08-29 [2]
   whisker             0.4        2019-08-28 [2]
   withr               2.3.0      2020-09-22 [2]
   wpp2019             1.1-1      2020-01-31 [1]
   xfun                0.18       2020-09-29 [2]
   xml2                1.3.2      2020-04-23 [2]
 source                                      
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 <NA>                                        
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.1)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.1)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 Github (mpascariu/MortalityEstimate@1e8f944)
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.0)                              
 Github (tidyverse/tibble@57d5b22)           
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.2)                              
 CRAN (R 4.0.0)                              

[1] /home/jorge/R/x86_64-pc-linux-gnu-library/4.0
[2] /usr/local/lib/R/site-library
[3] /usr/lib/R/site-library
[4] /usr/lib/R/library

 R ── Package was removed from disk.
@jimhester
Copy link
Member

This was tracked and fixed in #2264. It is not yet in the current CRAN release, but will be in the next one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants