Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Install latest build of Hmisc package for R 3.2.0 #26

Closed
GitKlip opened this issue May 4, 2015 · 9 comments
Closed

Unable to Install latest build of Hmisc package for R 3.2.0 #26

GitKlip opened this issue May 4, 2015 · 9 comments

Comments

@GitKlip
Copy link

GitKlip commented May 4, 2015

I was able to download and install all dependencies for Hmisc but when it came time to actually install Hmisc it failed. I
R Version 3.2.0
RStudio Version 0.98.1091
no .Rprofile defined
OS: Windows 8.1

install.packages("Hmisc",dependencies = TRUE)
Installing package into ‘C:/Users/Erik/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependency ‘rms’

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rms_4.3-0.zip'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rms_4.3-0.zip'
Warning in install.packages :
download of package ‘rms’ failed
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/Hmisc_3.15-0.zip'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/Hmisc_3.15-0.zip'
Warning in install.packages :
download of package ‘Hmisc’ failed

When I looked at http://cran.rstudio.com/bin/windows/contrib/3.2 I found that Hmisc_3.16-0.zip exists but was not being referenced.

When I tried to manually download and install Hmisc_3.16-0.zip I get the following error:

install.packages(pkgs="C:/Users/Erik/Downloads/Hmisc_3.16-0.zip" , lib="C:/Users/Erik/Documents/R/win-library/3.2")
Warning in install.packages :
package ‘C:/Users/Erik/Downloads/Hmisc_3.16-0.zip’ is not available (for R version 3.2.0)

@GitKlip
Copy link
Author

GitKlip commented May 4, 2015

I get a similar issue trying to download and install rms directly

install.packages(pkgs="C:/Users/Erik/Downloads/rms_4.3-1.zip" , lib="C:/Users/Erik/Documents/R/win-library/3.2")
Warning in install.packages :
package ‘C:/Users/Erik/Downloads/rms_4.3-1.zip’ is not available (for R version 3.2.0)

@harrelfe
Copy link
Owner

harrelfe commented May 4, 2015

We have tried this on multiple Windows 7 and Mac computers with no problems. What are differences for R for Windows 8?

@GitKlip
Copy link
Author

GitKlip commented May 5, 2015

I'm not aware of any differences with R for windows 8. Looking on the net I'm not seeing many people having problems with it. I'm still learning R so you probably know better than me, but based on the errors it seems like there might be two potential issues.

  1. the package dependencies seem a bit off since the install command was looking for a version that didn't exist in the 3.2 directory. are there separate dependency definitions for Windows 7 vs windows 8?
    Package install looked for and couldn't find: 'http://cran.rstudio.com/bin/windows/contrib/3.2/Hmisc_3.15-0.zip'
    A different version does exists when I browse the link: 'http://cran.rstudio.com/bin/windows/contrib/3.2/Hmisc_3.16-0.zip'

  2. message "/rms_4.3-1.zip’ is not available (for R version 3.2.0)" seems to indicate that there's something needed when building the packages to specify that they work with R 3.2.0

OS: Windows 8.1 64bit
R Version: 3.2.0 (2015-04-16) x86_64-w64-mingw32 (64bit)
RStudio Version: 0.98.1091 (I think 64bit)
no .Rprofile defined

@harrelfe
Copy link
Owner

harrelfe commented May 5, 2015

The only experience I have with those issues are that I had to make sure I was using the latest version of R and the latest version of RStudio so that install.packages would install the very latest Hmisc.

@GitKlip
Copy link
Author

GitKlip commented May 5, 2015

Just updated my version of RStudio to the latest and that seems to have fixed it. Interesting since I only installed my original RStudio about 2 weeks ago :-) Thanks for your help

@GitKlip GitKlip closed this as completed May 5, 2015
@SteveM49
Copy link

I am trying to get to this package now with R version 3.2.2 (2015-08-14). I updated RStudio to Version 0.99.473. I get the warning: package ‘F:/Temp/Hmisc_3.16-0.zip’ is not available (for R version 3.2.2).

Is there something else I should do?

@ckeraman
Copy link

ckeraman commented May 4, 2016

@GitKlip I am having exactly the same issue on Windows 10, same error messages and ultimately the installation fails.

@harrelfe
Copy link
Owner

harrelfe commented May 5, 2016

With no details there is nothing I can do, and I don't understand why this
is not showing as an issue on Github.


Frank E Harrell Jr Professor and Chairman School of Medicine

Department of Biostatistics Vanderbilt University

On Wed, May 4, 2016 at 5:30 PM, Cherif Keramane notifications@github.com
wrote:

@GitKlip https://github.com/GitKlip I am having exactly the same issue
on Windows 10, same error messages and ultimately the installation fails.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#26 (comment)

@3-1415926535
Copy link

3-1415926535 commented Sep 26, 2016

I was finally able to install Hmisc after what could be called a brute-force recursive installation of whatever packages were noted as needing updated in a given error message for a package installation.

E.g., when install.packages("Hmisc") returned:

Error : package ‘rpart’ was built before R 3.0.0: please re-install it
ERROR: lazy loading failed for package ‘Hmisc’
* removing ‘/home/wes/R/i686-pc-linux-gnu-library/3.2/Hmisc’
Warning in install.packages :
  installation of package ‘Hmisc’ had non-zero exit status

I'd try to install rpart. If installing rpart failed because it had out-of-date dependencies, I'd load them, then try again to install rpart, then try again to install Hmisc.

If the details of the particular maze I followed and the place I embarked from help:

  • This was a fresh install of RStudio Version 0.99.903 on a 34-bit GNU/Linux OS
  • Were I to have known all the packages to install and the order to do so, the R command would've been:
install.packages("rpart", "nnet", "cluster", "scales", "colorspace", "munsell", "scales", "ggplot2", "latticeExtras", "RColorBrewer", "survival", "Matrix", "lavaan", "Hmisc")

HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants