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

error when testing a file using ```test`` #1503

Closed
vermouthmjl opened this issue May 10, 2017 · 4 comments
Closed

error when testing a file using ```test`` #1503

vermouthmjl opened this issue May 10, 2017 · 4 comments

Comments

@vermouthmjl
Copy link

@vermouthmjl vermouthmjl commented May 10, 2017

Hi,
Something seems to have changed with 1.13.00.

> devtools::load_all(".")
Loading devtools
> test(filter ="bio")
Loading devtools
Loading required package: testthat
Testing devtools
  Error in grepl(filter, test_names, ...) : 
  unused arguments (load_helpers = FALSE, encoding = "UTF-8") 

> session_info()
Session info -----------------------------------------------------------------------
 setting  value                       
 version  R version 3.3.2 (2016-10-31)
 system   x86_64, darwin13.4.0        
 ui       RStudio (1.0.136)           
 language (EN)                        
 collate  C                           
 tz       Europe/Paris                
 date     2017-05-10                  

Packages ---------------------------------------------------------------------------
 package    * version date       source        
 base       * 3.3.2   2016-10-31 local         
 commonmark   1.2     2017-03-01 CRAN (R 3.3.2)
 crayon       1.3.2   2016-06-28 CRAN (R 3.3.0)
 datasets   * 3.3.2   2016-10-31 local         
 devtools   * 1.13.0  2017-05-08 CRAN          
 digest       0.6.12  2017-01-27 CRAN (R 3.3.2)
 git2r        0.18.0  2017-01-01 CRAN (R 3.3.2)
 graphics   * 3.3.2   2016-10-31 local         
 grDevices  * 3.3.2   2016-10-31 local         
 httr         1.2.1   2016-07-03 CRAN (R 3.3.0)
 jsonlite     1.4     2017-04-08 CRAN (R 3.3.2)
 magrittr     1.5     2014-11-22 CRAN (R 3.3.0)
 memoise      1.1.0   2017-04-21 CRAN (R 3.3.2)
 methods    * 3.3.2   2016-10-31 local         
 R6           2.2.0   2016-10-05 CRAN (R 3.3.0)
 Rcpp         0.12.10 2017-03-19 CRAN (R 3.3.2)
 roxygen2     6.0.1   2017-02-06 CRAN (R 3.3.2)
 rstudioapi   0.6     2016-06-27 CRAN (R 3.3.0)
 stats      * 3.3.2   2016-10-31 local         
 stringi      1.1.5   2017-04-07 CRAN (R 3.3.2)
 stringr      1.2.0   2017-02-18 CRAN (R 3.3.2)
 testthat   * 1.0.2   2016-04-23 CRAN (R 3.3.0)
 tools        3.3.2   2016-10-31 local         
 utils      * 3.3.2   2016-10-31 local         
 whisker      0.3-2   2013-04-28 CRAN (R 3.3.0)
 withr        1.0.2   2016-06-20 CRAN (R 3.3.0)
 xml2         1.1.1   2017-01-24 CRAN (R 3.3.2)
@vermouthmjl
Copy link
Author

@vermouthmjl vermouthmjl commented May 10, 2017

From what I can see, it seems there isn't really need to have load_helpers here
(c323994 588dd97), since it's already in hadley/testthat@326a52c, at least for using test(). However, I don't know if these changes affect other things.

@jimhester
Copy link
Member

@jimhester jimhester commented May 10, 2017

The short term solution is to install devel testthat, this functionality inadvertently depends on changes in testthat that are not yet released to CRAN.

devtools::install_github("hadley/testthat")
@vermouthmjl
Copy link
Author

@vermouthmjl vermouthmjl commented May 10, 2017

OK, great. Thank you.
(I was trying to use install_version to install an older version of devtools, and that does not seem to work, but I guess that's normal.)

@jimhester jimhester closed this in c382a24 May 17, 2017
@lock
Copy link

@lock lock bot commented Sep 18, 2018

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 Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants