Skip to content

Commit

Permalink
src_dir() not available for older Packrat (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Aug 27, 2019
1 parent a2a6ca9 commit b18402d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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 for R
Version: 0.6.0-142
Version: 0.6.0-143
Authors@R: c(
person("Kevin", "Ushey", role = c("aut", "cre"), email = "[email protected]"),
person("RStudio", role = c("cph"))
Expand Down
3 changes: 1 addition & 2 deletions R/migrate.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ renv_migrate_packrat_lockfile <- function(project) {
renv_migrate_packrat_sources <- function(project) {

packrat <- asNamespace("packrat")

srcdir <- packrat$src_dir(project = project)
srcdir <- packrat$srcDir(project = project)
if (!file.exists(srcdir))
return(TRUE)

Expand Down

0 comments on commit b18402d

Please sign in to comment.