You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I install the version of pak from CRAN, I sometimes get issues such as the following:
> pak::pkg_install("curl")
→ Will install 1 package.
→ The package (932.96 kB) is cached.
+ curl 6.1.0 [bld][cmp]
ℹ No downloads are needed, 1 pkg (932.96 kB) is cached
ℹ Building curl 6.1.0
✖ Failed to build curl 6.1.0 (1s)
Error:
! error in pak subprocess
Caused by error in `stop_task_build(state, worker)`:
! Failed to build source package curl.
Full installation output:
Error in rawToChar(block[seq_len(ns)]) :
embedded nul in string: 'PK\003\004\n\0\0\0\0\0EW)Z\0\0\0\0\0\0\0\0\0\0\0\0\005\0\0\0curl/PK\003\004\024\0\002\0\b\0BW)Z\xb9K\xea\xfc\xb0\003\0\00\006\0\0\020\0\0\0curl/DESCRIPTIONmTmO\xdbH\020\xfen\xc9\xffa\xe4/\004\x9d\xed$\xce'
Type .Last.error to see the more details.
However, if I switch to the prebuild binary version, there are no issues.
The sessionInfo() is:
> sessionInfo()
R version 4.4.1 (2024-06-14 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.utf8 LC_CTYPE=English_United Kingdom.utf8 LC_MONETARY=English_United Kingdom.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.1 here_1.0.1 rprojroot_2.0.4 tools_4.4.1 pak_0.8.0
The text was updated successfully, but these errors were encountered:
This is coming from utils::untar() when it is trying to uncompress the source R package file. First I would try to clean the cache to make sure it is not a corrupt package file:
pak::cache_clean()
This is the correct hash of the curl 6.1.0 source file:
If I install the version of
pak
from CRAN, I sometimes get issues such as the following:However, if I switch to the prebuild binary version, there are no issues.
The
sessionInfo()
is:The text was updated successfully, but these errors were encountered: