[R] Building binary file failed
Steven T. Yen
@tyen @end|ng |rom ntu@edu@tw
Thu Jul 14 10:23:56 CEST 2022
Dear Ivan and all
I had absolutely no idea what I was doing. I read
https://stackoverflow.com/questions/50192038/r-devtools-build-zip-failure
from which I learned to install devtools.
Then, my problem is resolved. Log file is attached below. Thank you all.
If someone can explain what I was doing (cause I still have no clue),
I'd still be happy to listen.
Steven Yen
====
> install.packages("devtools")
Installing package into ‘C:/Users/USER/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL
'https://cran.rstudio.com/bin/windows/contrib/4.2/devtools_2.4.3.zip'
Content type 'application/zip' length 423598 bytes (413 KB)
downloaded 413 KB
package ‘devtools’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\USER\AppData\Local\Temp\RtmpUZvAF8\downloaded_packages
> devtools::find_rtools()
[1] TRUE
> install.packages("A:/R/yenlib1_1.1.0.zip",repos=NULL) # from local,
change path
Installing package into ‘C:/Users/USER/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
package ‘yenlib1’ successfully unpacked and MD5 sums checked
On 7/14/2022 3:00 PM, Steven T. Yen wrote:
> Ivan
>
> If you are asking me,...
>
>> After R CMD INSTALL --build yenlib1 is done, what is inside the *.zip
>> file? Does it look like a valid zip file?
>
> The .zip is zero size. The double-click it and found the folder empty.
>
>> If you open a Windows command line and type "where zip", which zip.exe
>> is returned? Is it the one from Rtools?
>
> Running the Windows command line "where zip" there is no response. I
> have Windows 10.
>
> On 7/14/2022 2:38 PM, Ivan Krylov wrote:
>> On Thu, 14 Jul 2022 14:13:32 +0800
>> "Steven T. Yen" <styen using 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
>>
More information about the R-help
mailing list