What package to install

Dason

Ambassador to the humans
#21
I don't want to sound too mean... But I can't trust you at all. Can you post the literal entire session. Like I don't know if you ran the .libPaths stuff before that or not. And that just goes for the future too. Always post your entire session.
 

noetsi

Fortran must die
#22
I don't think I am changing the library correctly. I wanted to start with that. Part of the problem I think is I don't understand what R is looking for in the path. This is what I did to find out where it is and try to change it. To me it looks like it is not changing the library path correctly.

.libPaths()
[1] "\\\\fldvr.net/hq/Users/rthellein/Documents/R/win-library/3.3"
[2] "C:/Program Files/R/R-3.3.0/library"
> .libPaths("S:/CIU/RUSTY2/perm")
> .libPaths()
[1] "S:/CIU/RUSTY2/perm" "C:/Program Files/R/R-3.3.0/library"
>
 

Dason

Ambassador to the humans
#23
Pay the entire session. What I mean is close R down. Ok. Now stay it up again and do everything you did before but just the commands that matter. Then copy and paste EVERYTHING.
 

noetsi

Fortran must die
#24
Dason I will but before I do that I know I need to correct this. It is not changing where my library is. What am I doing wrong?

.libPaths("\\\\fldvr.net/hq/S:/CIU/Rusty2/perm")
> .libPaths()
[1] "C:/Program Files/R/R-3.3.0/library"
 

Dason

Ambassador to the humans
#25
It won't add a directory if it doesn't exist. That's also different than what you were posting before. But yeah... If you specify a directory that doesn't actually exist it won't get added.
 

noetsi

Fortran must die
#26
But the directory does exist. It is why I used it. In fact there are huge number of zipped R files there already which is why I chose it. Is there anyway I can use a GUI to point to where the directory is. I think I am simply writing the path in a way R does not understand.

In my system it is perm inside rusty2 inside the S drive.
 

noetsi

Fortran must die
#28
This is really strange. I do this...

.libPaths("S:/CIU/RUSTY2/perm")
> .libPaths()
[1] "S:/CIU/RUSTY2/perm" "C:/Program Files/R/R-3.3.0/library"

So it looks like it is listing both as a library. I need to remove the later, because it tires to install there and it can not write there.
 

noetsi

Fortran must die
#29
Dason you asked for the whole thing. Here it is. I think it is still downloading to the wrong place.

.libPaths("S:/CIU/RUSTY2/perm")
> .libPaths()
[1] "S:/CIU/RUSTY2/perm" "C:/Program Files/R/R-3.3.0/library"
> options(repos = "https://mirror.las.iastate.edu/CRAN/")
> install.packages(forecast)
Error in install.packages(forecast) : object 'forecast' not found
> install.packages("forecast")
Installing package into ‘S:/CIU/RUSTY2/perm’
(as ‘lib’ is unspecified)
also installing the dependencies ‘farver’, ‘lifecycle’, ‘isoband’, ‘rlang’, ‘scales’, ‘ggplot2’


There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.2.0 0.4.5 TRUE
scales 0.5.0 1.1.0 TRUE
ggplot2 2.2.1 3.3.0 FALSE
forecast 8.2 8.12 TRUE

Binaries will be installed
Packages which are only available in source form, and may need
compilation of C/C++/Fortran: ‘farver’ ‘isoband’
These will not be installed
trying URL 'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

trying URL 'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/3.3/scales_0.5.0.zip'
Content type 'application/zip' length 692819 bytes (676 KB)
downloaded 676 KB

trying URL 'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/3.3/forecast_8.2.zip'
Content type 'application/zip' length 2074483 bytes (2.0 MB)
downloaded 2.0 MB

package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘scales’ successfully unpacked and MD5 sums checked
package ‘forecast’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\rthellein\AppData\Local\Temp\Rtmp6xRsI3\downloaded_packages
installing the source packages ‘lifecycle’, ‘ggplot2’

trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/lifecycle_0.2.0.tar.gz'
Content type 'application/x-gzip' length 164455 bytes (160 KB)
downloaded 160 KB

trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/ggplot2_3.3.0.tar.gz'
Content type 'application/x-gzip' length 3031461 bytes (2.9 MB)
downloaded 2.9 MB

'\\fldvr.net\hq\users\Rthellein\Desktop'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[]) :
namespace 'rlang' 0.2.0 is being loaded, but >= 0.4.0 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'S:/CIU/RUSTY2/perm/lifecycle'
'\\fldvr.net\hq\users\Rthellein\Desktop'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependency 'isoband' is not available for package 'ggplot2'
* removing 'S:/CIU/RUSTY2/perm/ggplot2'

The downloaded source packages are in
‘C:\Users\rthellein\AppData\Local\Temp\Rtmp6xRsI3\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "S:\CIU\RUSTY2\perm" C:\Users\RTHELL~1\AppData\Local\Temp\Rtmp6xRsI3/downloaded_packages/lifecycle_0.2.0.tar.gz' had status 1
2: In install.packages("forecast") :
installation of package ‘lifecycle’ had non-zero exit status
3: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "S:\CIU\RUSTY2\perm" C:\Users\RTHELL~1\AppData\Local\Temp\Rtmp6xRsI3/downloaded_packages/ggplot2_3.3.0.tar.gz' had status 1
4: In install.packages("forecast") :
installation of package ‘ggplot2’ had non-zero exit status
 

noetsi

Fortran must die
#30
I ran this, which is suggested on line, and got a problem as well

options(repos = "https://mirror.las.iastate.edu/CRAN/")
> install.packages("forecast", lib="S:/CIU/RUSTY2/perm")
also installing the dependencies ‘isoband’, ‘rlang’, ‘ggplot2’


There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.2.0 0.4.5 TRUE
ggplot2 2.2.1 3.3.0 FALSE
forecast 8.2 8.12 TRUE

Binaries will be installed
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘isoband’
These will not be installed
trying URL 'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

trying URL 'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/3.3/forecast_8.2.zip'
Content type 'application/zip' length 2074483 bytes (2.0 MB)
downloaded 2.0 MB

package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘forecast’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\rthellein\AppData\Local\Temp\RtmpwVvgHP\downloaded_packages
installing the source package ‘ggplot2’

trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/ggplot2_3.3.0.tar.gz'
Content type 'application/x-gzip' length 3031461 bytes (2.9 MB)
downloaded 2.9 MB

'\\fldvr.net\hq\users\Rthellein\Desktop'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependency 'isoband' is not available for package 'ggplot2'
* removing 'S:/CIU/RUSTY2/perm/ggplot2'

The downloaded source packages are in
‘C:\Users\rthellein\AppData\Local\Temp\RtmpwVvgHP\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "S:\CIU\RUSTY2\perm" C:\Users\RTHELL~1\AppData\Local\Temp\RtmpwVvgHP/downloaded_packages/ggplot2_3.3.0.tar.gz' had status 1
2: In install.packages("forecast", lib = "S:/CIU/RUSTY2/perm") :
installation of package ‘ggplot2’ had non-zero exit status
 

noetsi

Fortran must die
#31
Ok I do this and it appears to work
> install.packages ("rlang")
Installing package into ‘S:/CIU/RUSTY2/perm’
(as ‘lib’ is unspecified)

There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.2.0 0.4.5 TRUE

Binaries will be installed
trying URL 'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

package ‘rlang’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\rthellein\AppData\Local\Temp\Rtmp0EWC9E\downloaded_packages

But when i try to install ggplot2 (which appears to be the problem with the forecast package installation always this occurs

install.packages("ggplot2")
Installing package into ‘S:/CIU/RUSTY2/perm’
(as ‘lib’ is unspecified)
also installing the dependencies ‘isoband’, ‘rlang’


There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.2.0 0.4.5 TRUE
ggplot2 2.2.1 3.3.0 FALSE

Binaries will be installed
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘isoband’
These will not be installed
trying URL 'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

package ‘rlang’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\rthellein\AppData\Local\Temp\Rtmp0EWC9E\downloaded_packages
installing the source package ‘ggplot2’

trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/ggplot2_3.3.0.tar.gz'
Content type 'application/x-gzip' length 3031461 bytes (2.9 MB)
downloaded 2.9 MB

'\\fldvr.net\hq\users\Rthellein\Desktop'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependency 'isoband' is not available for package 'ggplot2'
* removing 'S:/CIU/RUSTY2/perm/ggplot2'

The downloaded source packages are in
‘C:\Users\rthellein\AppData\Local\Temp\Rtmp0EWC9E\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "S:\CIU\RUSTY2\perm" C:\Users\RTHELL~1\AppData\Local\Temp\Rtmp0EWC9E/downloaded_packages/ggplot2_3.3.0.tar.gz' had status 1
2: In install.packages("ggplot2") :
installation of package ‘ggplot2’ had non-zero exit status
 

noetsi

Fortran must die
#32
This may be the issue although I do not understand it. forecast relies on ggplot2 and that on isoband apparently. When I tried to install that I get
> install.packages("isoband")
Installing package into ‘S:/CIU/RUSTY2/perm’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘isoband’
These will not be installed
 

noetsi

Fortran must die
#34
Before I give up and go back to SAS I do the following
options(repos = "https://mirror.las.iastate.edu/CRAN/")
> install.packages("installr",lib="S:/CIU/RUSTY2/perm")

And get
There is a binary version available but the source version is later:
binary source needs_compilation
installr 0.19.0 0.22.0 FALSE
installing the source package ‘installr’
trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/installr_0.22.0.tar.gz'
Content type 'application/x-gzip' length 146544 bytes (143 KB)
downloaded 143 KB
'\\fldvr.net\hq\users\Rthellein\Desktop'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'installr' ...
** package 'installr' successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (installr)
The downloaded source packages are in
‘C:\Users\rthellein\AppData\Local\Temp\RtmpovUWif\downloaded_packages’

which looks like it works. But then when i do a library statement it can not find this package.
 

noetsi

Fortran must die
#35
strange I do .libPaths("S:/CIU/RUSTY2/perm") and it appears to work and I open a new session of R and it has gone right back to the old library. Do library changes only last for one session?
 

noetsi

Fortran must die
#37
That is strange to me. In SAS it always goes to where you have specified your library even after you close a session.

I tried to change versions and I have no idea what it did

Installing the newest version of R,
please wait for the installer file to be download and executed.
Be sure to click 'next' as needed...
trying URL 'https://cran.rstudio.com/bin/windows/base/R-4.0.0-win.exe'
Content type 'application/x-msdownload' length 87563616 bytes (83.5 MB)
downloaded 83.5 MB

The file was downloaded successfully into:
C:\Users\RTHELL~1\AppData\Local\Temp\RtmpiURw1c/R-4.0.0-win.exe
Running the installer now...
'\\fldvr.net\hq\users\Rthellein\Desktop'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Installation status: TRUE . Removing the file:
C:\Users\RTHELL~1\AppData\Local\Temp\RtmpiURw1c/R-4.0.0-win.exe
(In the future, you may keep the file by setting keep_install_file=TRUE)
No packages to copy. Goodbye :)
 

noetsi

Fortran must die
#38
I had according to the printout I got the newest version. Then I left and came back and the version had reverted to the old system. Is that normal? I can't update every time I come back, I don't have administrative rights.

I figured out the issue. It creates a new icon for every version. I was clicking on the old icon and getting the wrong version.
 
Last edited:

noetsi

Fortran must die
#39
I think version was the issue. All the packages that would not install before are not getting errors. The problem is that the huge number of packages I had downloaded probably are lost since I reinstalled R......or that is what I read.

And that is a major problem apparently. While forecast is installed every time I do a statement to use it I get one after another of these

> library("forecast")
Error: package or namespace load failed for ‘forecast’:
package ‘colorspace’ was installed before R 4.0.0: please re-install it

I thought the dependencies were automatically installed.