Skip to content

{usethis} should move to Imports rather than Suggests? #193

@daattali

Description

@daattali

I just tried installing {shinytest2} in a brand new environment. Running shinytest2::record_test() was working fine all the way until the end when I clicked the "Save test and exit" button. Clicking that button resulted in an error in the console:

Error in write_union("tests/testthat/setup.R", comments = "# Load application support files into testing environment",  : 
  The package `usethis` is required.

To me this suggests that {usethis} is an essential package and should be automatically installed when {shinytest2} is installed. Since record_test() is the recommended way of using this package, that function should work out of the box.

Feel free to close this issue if you disagree :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions