Skip to content

error when testing a file using `test #1503

Closed

Description

@vermouthmjl

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)

Activity

  1. vermouthmjl commented on May 10, 2017

    @vermouthmjl
    Author

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

  2. jimhester commented on May 10, 2017

    @jimhester
    Member

    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")
  3. vermouthmjl commented on May 10, 2017

    @vermouthmjl
    Author

    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.)

  4. added a commit that references this issue on May 12, 2017
    c382a24
  5. lock commented on Sep 18, 2018

    @lock

    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/

  6. locked and limited conversation to collaborators on Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions