Skip to content

Commit

Permalink
rename del to cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Oct 25, 2023
1 parent 4b482be commit d219ba4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions r/tools/nixlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lg <- function(..., .indent = "***") {
cat(.indent, " ", sprintf(...), "\n", sep = "")
}

del <- function(path) {
cleanup <- function(path) {
options(.arrow.cleanup = c(getOption(".arrow.cleanup"), path))
}

Expand Down Expand Up @@ -490,7 +490,7 @@ build_libarrow <- function(src_dir, dst_dir) {
# But normally we'll just build in a tmp dir
build_dir <- tempfile()
}
del(build_dir)
cleanup(build_dir)

env_var_list <- c(
SOURCE_DIR = src_dir,
Expand Down Expand Up @@ -608,7 +608,7 @@ ensure_cmake <- function(cmake_minimum_required = "3.16") {
}
untar(cmake_tar, exdir = cmake_dir)
unlink(cmake_tar)
del(cmake_dir)
cleanup(cmake_dir)
cmake <- paste0(
cmake_dir,
"/cmake-", CMAKE_VERSION, sub(".tar.gz", "", postfix, fixed = TRUE),
Expand Down Expand Up @@ -788,7 +788,7 @@ with_cloud_support <- function(env_var_list) {
cmake_find_package <- function(pkg, version = NULL, env_var_list) {
td <- tempfile()
dir.create(td)
del(td)
cleanup(td)
find_package <- paste0("find_package(", pkg, " ", version, " REQUIRED)")
writeLines(find_package, file.path(td, "CMakeLists.txt"))
env_vars <- env_vars_as_string(env_var_list)
Expand Down

0 comments on commit d219ba4

Please sign in to comment.