[R-pkg-devel] update.packages Error in if (any(diff)) { : missing value where TRUE/FALSE needed
Patrick Giraudoux
p@tr|ck@g|r@udoux @end|ng |rom un|v-|comte@|r
Sun Nov 17 15:12:58 CET 2024
Le 17/11/2024 à 14:54, Ivan Krylov a écrit :
> В Sun, 17 Nov 2024 14:45:58 +0100
> Patrick Giraudoux<patrick.giraudoux using univ-fcomte.fr> пишет:
>
>> Then I get x = a character of 658 elements, same for xx, same for nmxx
> Thank you for providing the information!
>
> The problem is that the following code:
>
> diff <- xx[nmxx] != x[nmxx]
>
> ...somehow gives missing values. What's in 'diff'? What is
> nmxx[is.na(diff)]? What about x[nmxx[is.na(diff)]] and
> xx[nmxx[is.na(diff)]]?
>
> It looks like tools::md5sum() fails to open some of the files (and thus
> returns NA). The cause of that may depend on which version of Windows
> you're running and your locale settings, hence the need for the
> sessionInfo() output.
>
Ups sorry, here you are:
> sessionInfo()
R version 4.4.2 (2024-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.utf8 LC_CTYPE=French_France.utf8
[3] LC_MONETARY=French_France.utf8 LC_NUMERIC=C
[5] LC_TIME=French_France.utf8
time zone: Europe/Paris
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.2
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list