dbosak01 / sassy

A meta-package for providing SAS®-like functionality to R.
Creative Commons Zero v1.0 Universal
21 stars 4 forks source link

Error on install #37

Closed dbosak01 closed 11 months ago

dbosak01 commented 1 year ago

install.packages("sassy") Installing package into ‘/home/dbosak01/R/x86_64-pc-linux-gnu-library/3.6’ (as ‘lib’ is unspecified) also installing the dependencies ‘common’, ‘reporter’, ‘procs’

trying URL 'https://cloud.r-project.org/src/contrib/common_1.0.8.tar.gz' Content type 'application/x-gzip' length 428968 bytes (418 KB)

downloaded 418 KB

trying URL 'https://cloud.r-project.org/src/contrib/reporter_1.4.1.tar.gz' Content type 'application/x-gzip' length 3393348 bytes (3.2 MB)

downloaded 3.2 MB

trying URL 'https://cloud.r-project.org/src/contrib/procs_1.0.3.tar.gz' Content type 'application/x-gzip' length 1038340 bytes (1014 KB)

downloaded 1014 KB

trying URL 'https://cloud.r-project.org/src/contrib/sassy_1.2.0.tar.gz' Content type 'application/x-gzip' length 3975248 bytes (3.8 MB)

downloaded 3.8 MB

The downloaded source packages are in ‘/tmp/RtmpKb1hfJ/downloaded_packages’

dbosak01 commented 1 year ago

On Linux/Unix, the SASSY metapackage seems to be loading an old version of fmtr. The old version is conflicting with the common package, and causing the procs package to fail. Temporary work-around is to install each package individually, instead of installing everything from SASSY. You can run the following code:

remove.packages(c("fmtr", "common", "logr", "libr", "reporter", "procs", "sassy"))

install.packages(c("fmtr", "common", "logr", "libr", "reporter", "procs", "sassy"))

sassy::run_oq(location=tempdir())

The run_oq() function will run a script that verifies that everything is installed and working correctly.

dbosak01 commented 1 year ago

It seems like some environments refuse to install the newer version of fmtr. I don't know why. But that is messing up all the other packages, in particular procs. So if procs can't install, then the new version of sassy cannot install. I was just talking to someone with R 4.0.5 on Linux, and they can't get the new version of sassy to install, even with the above code. No matter what we did, we couldn't get fmtr >= 1.5.9. It was always installing fmtr 1.5.0. Yet I have R 3.6.0 on Linux and the above code works for me. Not sure what is happening.

dbosak01 commented 1 year ago

Also I just upgraded fmtr to 1.6.0, because there was an insignificant update on Github that I thought might be interfering with the normal CRAN install.

dbosak01 commented 11 months ago

This turned out to be a problem with this particular users environment. They are on an IT controlled environment, and only IT can install packages. They had an old version of fmtr, and it was messing up everything else. So I think this is pretty specific to the client environment. Will keep an eye on this issue, but closing for now.