| extract_tar_program | R Documentation |
.tar.gz runtime archiveWindows ships bsdtar (libarchive) at System32\\tar.exe. It handles the
PAX / long-name records in python-build-standalone archives that R's
internal tar cannot (those surface as "embedded nul in string" errors), and
unlike a GNU tar from Git for Windows it does not misparse C:\\... paths as
remote hosts. Fall back to R's internal tar only when bsdtar is unavailable.
On macOS / Linux the system tar (bsdtar or GNU tar) already handles PAX
records, including the Apple com.apple.cs.CodeSignature xattrs in portable
R archives.
extract_tar_program(
os_type = .Platform$OS.type,
system_root = Sys.getenv("SystemRoot", unset = "C:\\Windows")
)
os_type |
Operating system family, defaulting to |
system_root |
Windows system root, defaulting to the |
A value suitable for the tar argument of utils::untar(): a path
to a tar executable, the string "internal", or the result of
Sys.which().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.