Skip to content

Commit

Permalink
moved directory definitions up in install.libs.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Mar 15, 2020
1 parent 7673da5 commit 56635a7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions R-package/src/install.libs.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@ if (!file.copy("../inst/bin/CMakeLists.txt", "CMakeLists.txt", overwrite = TRUE)
stop("Copying CMakeLists failed")
}

# Get some paths
source_dir <- file.path(R_PACKAGE_SOURCE, "src", fsep = "/")
build_dir <- file.path(source_dir, "build", fsep = "/")

# Check for precompilation
if (!use_precompile) {

# Check repository content
source_dir <- file.path(R_PACKAGE_SOURCE, "src", fsep = "/")
setwd(source_dir)

# Prepare building package
build_dir <- file.path(source_dir, "build", fsep = "/")
dir.create(build_dir, recursive = TRUE, showWarnings = FALSE)
dir.create(
build_dir
, recursive = TRUE
, showWarnings = FALSE
)
setwd(build_dir)

# Prepare installation steps
Expand Down

0 comments on commit 56635a7

Please sign in to comment.