Skip to content

Commit

Permalink
CRAN release 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Mar 29, 2021
1 parent 1c0824d commit e07a01c
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
^packrat/
^announce/
^scenarios/
^configure.R$
^NEWS.md$
^configure\.R$
^NEWS\.md$
^RELEASE\.md$
^\.Rprofile$
^\.github$
^tags$
^R/tags$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: packrat
Type: Package
Title: A Dependency Management System for Projects and their R Package
Dependencies
Version: 0.5.0-33
Version: 0.6.0
Author: Kevin Ushey, Jonathan McPherson, Joe Cheng, Aron Atkins, JJ Allaire
Maintainer: Kevin Ushey <[email protected]>
Description: Manage the R packages your project depends
Expand Down
9 changes: 5 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Packrat 0.6.0 (UNRELEASED)

- Packrat now only queries binary repositories for available packages during
installation if `getOption("pkgType") != "source"`.
# Packrat 0.6.0

- BREAKING CHANGE: The default Packrat cache directory has changed, and now
- **BREAKING CHANGE**: The default Packrat cache directory has changed, and now
includes an R version suffix. This helps avoid populating a single cache with
versions of packages compiled for different versions of R (as there is no
guarantee that packages compiled for e.g. R 3.4.x will work with R 3.5.x). If
you'd like to migrate your old Packrat cache directory, you can move the
directory at `dirname(packrat:::appDataDir())` to `packrat:::appDataDir()`.

- Packrat now only queries binary repositories for available packages during
installation if `getOption("pkgType") != "source"`.

- Packrat no longer attempts to unload packages loaded from the user library
after calling `packrat::init()`, as this could fail in a myriad of cases.
(To ensure proper isolation of the session, you should still restart R after
Expand Down
10 changes: 10 additions & 0 deletions R/testthat-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ rebuildTestRepo <- function(testroot = getwd()) {
file.rename(file.path(source, tarball), file.path(target, pkg, tarball))
}

# Force usage of version 2 of .rds files.
version <- Sys.getenv("R_DEFAULT_SERIALIZE_VERSION", unset = NA)
Sys.setenv(R_DEFAULT_SERIALIZE_VERSION = "2")
on.exit({
if (is.na(version))
Sys.unsetenv("R_DEFAULT_SERIALIZE_VERSION")
else
Sys.setenv(R_DEFAULT_SERIALIZE_VERSION = version)
}, add = TRUE)

tools::write_PACKAGES(target, subdirs = TRUE)
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Use packrat to make your R projects more:

See the [project page](https://rstudio.github.io/packrat/) for more information,
or join the discussion on the
[RStudio Community forums](https://community.rstudio.com/c/general).
[RStudio Community forums](https://community.rstudio.com).

Read the [release
notes](https://github.com/rstudio/packrat/blob/master/NEWS.md) to learn what's
Expand Down
7 changes: 7 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

## Release Notes

- Update version in DESCRIPTION file
- Update version in NEWS.md
- Run `source("R/update.R"); updateInit()` to update auto-loaders.

2 changes: 1 addition & 1 deletion inst/resources/init-rprofile.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#### -- Packrat Autoloader (version 0.5.0-33) -- ####
#### -- Packrat Autoloader (version 0.6.0) -- ####
source("packrat/init.R")
#### -- End Packrat Autoloader -- ####
2 changes: 1 addition & 1 deletion inst/resources/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ local({
## an 'installed from source' version

## -- InstallAgent -- ##
installAgent <- "InstallAgent: packrat 0.5.0-33"
installAgent <- "InstallAgent: packrat 0.6.0"

## -- InstallSource -- ##
installSource <- "InstallSource: source"
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
repo
repo-empty
packages/packrat
packrat/lib*/
Empty file.

0 comments on commit e07a01c

Please sign in to comment.