Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow compile_dll to work when source is in tempdir() #531

Merged
merged 2 commits into from Jan 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS.md
Expand Up @@ -61,6 +61,9 @@
neither `pull` nor `branch` are included in the formal parameters
(@krlmlr, #509).

* `compile_dll()` can now build packages located in R's `tempdir()`
directory (@richfitz, #531).

# devtools 1.5

Four new functions make it easier to add useful infrastructure to packages:
Expand Down
4 changes: 3 additions & 1 deletion R/compile-dll.r
Expand Up @@ -29,7 +29,9 @@ compile_dll <- function(pkg = ".", quiet = FALSE) {

# Mock install the package to generate the DLL
if (!quiet) message("Re-compiling ", pkg$package)
inst <- install_min(pkg, tempdir(), components = "libs",
install_dir <- tempfile("devtools_install_")
dir.create(install_dir)
inst <- install_min(pkg, install_dir, components = "libs",
args = if (needs_clean(pkg)) "--preclean",
quiet = quiet)

Expand Down