[R-pkg-devel] update.packages Error in if (any(diff)) { : missing value where TRUE/FALSE needed

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Sun Nov 17 14:54:51 CET 2024


В 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.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list