p.s. I had no problem doing Build -> Build Source Package to come up with a .Gz file. This may have to do with the Zip program in my new laptop. I removed and re-installed 7-Zip but it did not help. The Source package works for me but I'd like to be able to build a binary package. On 7/14/2022 12:14 PM, Steven T. Yen wrote:> Dear > > I have? anew laptop and am trying to build R lib / package as usual. > Now I get the following error message and the .zip file has a size 0. > Help? > > I just did the following to build the binary file: > > File -> Open project -> Build binary package under Build > > Thanks. > > Steven Yen > > ==> Rcmd.exe INSTALL --build --preclean yenlib1 * installing to > library 'C:/Users/USER/AppData/Local/R/win-library/4.2' * installing > *source* package 'yenlib1' ... ** using staged installation ** R ** > data *** moving datasets to lazyload DB ** byte-compile and prepare > package for lazy loading ** help *** installing help indices ** > building package indices ** testing if installed package can be loaded > from temporary location ** testing if installed package can be loaded > from final location ** testing if installed package keeps a record of > temporary installation path * MD5 sums zip error: Zip file structure > invalid (A:/R/yenlib1_1.1.0.zip) running 'zip' failed * DONE (yenlib1) > Binary package written to A:/R[[alternative HTML version deleted]]
On Thu, 14 Jul 2022 14:13:32 +0800 "Steven T. Yen" <styen at ntu.edu.tw> wrote:> This may have to do with the Zip program in > my new laptop. I removed and re-installed 7-Zip but it did not help.Yes, this is most likely related to the zip program. Adding MD5 sums involves running zip.exe -r9Xq <filename> <directory>, and the call fails for some reason. On the other hand, it can't be 7-zip because it doesn't contain zip.exe. After R CMD INSTALL --build yenlib1 is done, what is inside the *.zip file? Does it look like a valid zip file? If you open a Windows command line and type "where zip", which zip.exe is returned? Is it the one from Rtools?> [[alternative HTML version deleted]]Please compose your messages in plain text. Otherwise, the automatically translated plain text version is all we see, and it's severely botched: https://stat.ethz.ch/pipermail/r-help/2022-July/475284.html See also: http://www.R-project.org/posting-guide.html -- Best regards, Ivan