Evening gents: First to quickly try and set the scene. I run R on Linux Mint 19.3. I had version 3.5 installed, but wanted to try and upgrade to 4.1. So... I deleted all R stuff I could find, setup the software sources file, and tried to install. Didn't work. I suppose it needs a more recent edition of Mint. Backpedalled as best I could. Now 3.5 was uncooperative. Finally found some notes describing how to install 3.6. That worked. So now I again have a functioning copy of R, with a current edition of Rstudio as my principle access tool. Adding pkgs through the software manager doesn't seem to be work, but as long as I fire it up using the sudo command I can add them through Rstudio. The puzzle comes at the end of an install round. It seems I may have taken out something I shouldn't have as I get the following warning. Warning messages: 1: In readLines(file, skipNul = TRUE) : cannot open compressed file '/usr/lib/R/site-library/labelled/DESCRIPTION', probable reason 'No such file or directory' 2: In readLines(file, skipNul = TRUE) : cannot open compressed file '/usr/lib/R/site-library/TH.data/DESCRIPTION', probable reason 'No such file or directory' I'm not really sure. I assume I got sloppy withe deletions. I ask for assistance to solve this. What does it mean? What can I do to correct the error? Thanks in advance. ttyl... -- Brian Lunergan Pavillon Marionville Russell, Ontario Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20211107/11dbeca1/attachment.sig>
The topic here is R language, not operating system surgery. You probably shouldn't hold your breath for a solution to this here. That said, compiling and running without installing for access by the whole system is always an option if you can fix the support libraries. On November 7, 2021 2:07:20 PM PST, Brian Lunergan <ff809 at ncf.ca> wrote:>Evening gents: > >First to quickly try and set the scene. > >I run R on Linux Mint 19.3. I had version 3.5 installed, but wanted to >try and upgrade to 4.1. So... I deleted all R stuff I could find, setup >the software sources file, and tried to install. Didn't work. I suppose >it needs a more recent edition of Mint. Backpedalled as best I could. >Now 3.5 was uncooperative. Finally found some notes describing how to >install 3.6. That worked. So now I again have a functioning copy of R, >with a current edition of Rstudio as my principle access tool. Adding >pkgs through the software manager doesn't seem to be work, but as long >as I fire it up using the sudo command I can add them through Rstudio. > >The puzzle comes at the end of an install round. It seems I may have >taken out something I shouldn't have as I get the following warning. > >Warning messages: >1: In readLines(file, skipNul = TRUE) : > cannot open compressed file >'/usr/lib/R/site-library/labelled/DESCRIPTION', probable reason 'No such >file or directory' >2: In readLines(file, skipNul = TRUE) : > cannot open compressed file >'/usr/lib/R/site-library/TH.data/DESCRIPTION', probable reason 'No such >file or directory' > >I'm not really sure. I assume I got sloppy withe deletions. I ask for >assistance to solve this. What does it mean? What can I do to correct >the error? Thanks in advance. > >ttyl...-- Sent from my phone. Please excuse my brevity.
On Sun, 7 Nov 2021 17:07:20 -0500 Brian Lunergan <ff809 at ncf.ca> wrote:> I run R on Linux Mint 19.3.If my advice below doesn't help, let's continue this in the other mailing list, r-sig-debian at r-project.org <https://stat.ethz.ch/mailman/listinfo/r-sig-debian>.> Warning messages: > 1: In readLines(file, skipNul = TRUE) : > cannot open compressed file > '/usr/lib/R/site-library/labelled/DESCRIPTION', probable reason 'No > such file or directory' > 2: In readLines(file, skipNul = TRUE) : > cannot open compressed file > '/usr/lib/R/site-library/TH.data/DESCRIPTION', probable reason 'No > such file or directory'It seems that you've been installing packages into the system-wide library. Could you try removing all R-related deb packages from your system, wiping the directories /usr/lib/R and /usr/share/R, then installing R again? Alternatively, write a script to search files and directories in /usr/lib/R and /usr/share/R, use `dpkg -S` to see if it's owned by a package and move it away if not. Both options are quite a bit dangerous, though. On second thought, what is in /usr/lib/R/site-library/labelled and /usr/lib/R/site-library/TH.data? If the two directories are empty, you can just remove them. -- Best regards, Ivan