Skip to content

Commit

Permalink
CRAN release 1.0.8 (#1987)
Browse files Browse the repository at this point in the history
* prepare for release

* URL fixups

* ignore tarballs in package root

* fixup for usethis

* don't ignore .tar.gz
  • Loading branch information
kevinushey authored Sep 20, 2024
1 parent 0112f08 commit 28d1067
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: renv
Type: Package
Title: Project Environments
Version: 1.0.7.9000
Version: 1.0.8
Authors@R: c(
person("Kevin", "Ushey", role = c("aut", "cre"), email = "[email protected]",
comment = c(ORCID = "0000-0003-2880-7407")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# renv (development version)
# renv 1.0.8

* `renv` now infers a dependency on the `ragg` package when the `ragg_png` device
is used in R Markdown / Quarto documents, for documents using the code
Expand Down
12 changes: 11 additions & 1 deletion tests/testthat/test-install.R
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,17 @@ test_that("packages embedded in the project use a project-local RemoteURL", {
skip_if(is.null(usethis$create_package))
renv_scope_options(usethis.quiet = TRUE)
unlink("example", recursive = TRUE)
usethis$create_package("example", rstudio = FALSE, open = FALSE)

fields <- list(
"Authors@R" = utils::person(
"Kevin", "Ushey",
email = "[email protected]",
role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2880-7407")
)
)

usethis$create_package("example", fields = fields, rstudio = FALSE, open = FALSE)

install("./example")
lockfile <- snapshot(lockfile = NULL)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that("remote field updates are written to both DESCRIPTION, packages.rds",
)

renv_tests_scope()
renv_scope_envvars(RENV_PATHS_LOCAL = "")
renv_scope_envvars(RENV_PATHS_LOCAL = NULL)
install(packages = list(record))

pkgpath <- renv_package_find("skeleton")
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-restore.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ test_that("restore works with explicit Source", {
init()

renv_scope_envvars(
RENV_PATHS_LOCAL = "",
RENV_PATHS_CACHE = ""
RENV_PATHS_LOCAL = NULL,
RENV_PATHS_CACHE = NULL
)

record <- list(
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-retrieve.R
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ test_that("explicit path to binary packages work", {

test_that("remotes::install_local() records are handled", {

renv_scope_envvars(RENV_PATHS_LOCAL = "")
renv_scope_envvars(RENV_PATHS_LOCAL = NULL)

record <- list(
Package = "skeleton",
Expand Down
2 changes: 1 addition & 1 deletion vignettes/package-install.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ renv::install("xml2")
renv does not build vignettes when installing a package from source.
This is because vignettes often require suggested packages, and installing all suggested packages (particularly from source) can be arduous.

If you want to distribute vignettes for your own packages, we suggest creating your own repository of binaries, either with [R Universe](https://r-universe.dev/search/) (for publicly hosted packages on GitHub), with [Posit Package Manager](https://posit.co/products/enterprise/package-manager/), or with [drat](https://eddelbuettel.github.io/drat/).
If you want to distribute vignettes for your own packages, we suggest creating your own repository of binaries, either with [R Universe](https://r-universe.dev/) (for publicly hosted packages on GitHub), with [Posit Package Manager](https://posit.co/products/enterprise/package-manager/), or with [drat](https://eddelbuettel.github.io/drat/).

## Downloads

Expand Down
2 changes: 1 addition & 1 deletion vignettes/renv.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ You can see your current libraries with `.libPaths()` and see which packages are

A **repository** is a source of packages; `install.packages()` gets a package from a repository (usually somewhere on the Internet) and puts it in a library (a directory on your computer).
The most important repository is CRAN; you can install packages from CRAN in just about every R session.
Other freely available repositories include [Bioconductor](https://bioconductor.org), the [Posit Public Package Manager](https://packagemanager.posit.co), and [R Universe](https://r-universe.dev/search/) (which turns GitHub organisations into repositories).
Other freely available repositories include [Bioconductor](https://bioconductor.org), the [Posit Public Package Manager](https://packagemanager.posit.co), and [R Universe](https://r-universe.dev/) (which turns GitHub organisations into repositories).

You can see which repositories are currently set up in your session with `getOption("repos")`; when you call `install.packages("{pkgname}")`, R will look for `pkgname` in each repository in turn.

Expand Down

0 comments on commit 28d1067

Please sign in to comment.