Skip to content

Commit

Permalink
Set temporary libpath in build.
Browse files Browse the repository at this point in the history
Fixes #335
  • Loading branch information
hadley committed Oct 7, 2013
1 parent 9a7253b commit 2a4bcac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
devtools 1.3.99
----------------

* `build(binary = TRUE)` now no longer installs the package as a side-effect.
(#335)

* `install()` gains a `build_vignettes` which defaults to TRUE, and ensures
that vignettes are built even when doing a local install. (#344)

Expand Down
3 changes: 1 addition & 2 deletions R/build.r
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ build <- function(pkg = ".", path = NULL, binary = FALSE, vignettes = TRUE,

ext <- "tar.gz"
}
R(cmd, path, quiet = quiet)

with_libpaths(c(tempdir(), .libPaths()), R(cmd, path, quiet = quiet))
targz <- paste0(pkg$package, "_", pkg$version, ".", ext)

file.path(path, targz)
Expand Down

0 comments on commit 2a4bcac

Please sign in to comment.