I would like to run the package-internal tests with testthat::test_package('httr')
on a specific version of a package.
Is there a way to install a R package (e.g. from CRAN) with a specific version AND it's tests?
I know there is
install.packages("httr", INSTALL_opts = "--install-tests")
to install the tests for the given package (without any option to specify a specific package version).
And there is
devtools::install_version("httr", version = "1.4.1")
or renv::install("[email protected]")
to install a specific version for a package (without the possibility to specify e.g. the INSTALL_opts).
I don't see any way to combine the specification of the package version and the --install-tests
option.
Any help would be appreciated!
Note: The package "httr" was just used as a placeholder here.
rebuild=TRUE
option. Thanks! – Lamonica