From d42b8981e3716e69b4a2027e8ec80d0adff2715a Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 19 May 2026 12:25:07 +0000 Subject: [PATCH] - Fix an issue with using swat::download_sas_binaries() on Linux when doing cross-device file.rename() - Add NUMA to SystemRequirements Signed-off-by: Michael Mayer --- DESCRIPTION | 1 + R/helper.R | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 65fe637..657f5e9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -47,3 +47,4 @@ Collate: 'connection_viewer.R' RoxygenNote: 7.3.2 VignetteBuilder: knitr +SystemRequirements: NUMA (deb) or numactl-devel (rpm) diff --git a/R/helper.R b/R/helper.R index f3903ca..654eb14 100644 --- a/R/helper.R +++ b/R/helper.R @@ -292,7 +292,8 @@ download_sas_binaries <- function(libpath = .libPaths()){ installed_lib_paths = paste0("R-swat-", pkg_ver, "/inst/libs") untar(tempfile, files = installed_lib_paths, exdir = temp) - file.rename(file.path(temp, installed_lib_paths), file.path(libpath, "libs")) + dir.create(file.path(libpath, "libs"),recursive = TRUE) + file.copy(file.path(temp, installed_lib_paths), file.path(libpath), recursive = TRUE) message("Restart your R session and reload swat to enable binary connection") }