library(survHE) wont work

Dears,
I am trying to upload the following package (survHE). the installation is fine, but when I try library("survHE)
the following error appears:

library(survHE)
Error in library(survHE) : there is no package called ‘survHE’

Would you please help me.

Thank you

Installation instructions here:

Thanks, but still not working. the same error keep appearing.

Perhaps close and restart? Otherwise, not sure.

I did, no change.. thanks for your help anyway. really appreciate it.

You need to be more specific, post the complete output message you get when you run the installation command (as per the instructions).

install.packages("survHE",
	repos=c("http://www.statistica.it/gianluca/R",
		"https://cran.rstudio.org",
		"https://inla.r-inla-download.org/R/stable"),
	type="source",
	dependencies=TRUE
)

Thanks for replying.., this is what I got:

install.packages("survHE",

  •              repos=c("http://www.statistica.it/gianluca/R",
    
  •                      "https://cran.rstudio.org",
    
  •                      "https://inla.r-inla-download.org/R/stable"),
    
  •              type="source",
    
  •              dependencies=TRUE
    
  • )
    WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/SONY/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rappdirs’, ‘sass’, ‘httpuv’, ‘digest’, ‘htmltools’, ‘sourcetools’, ‘later’, ‘promises’, ‘fastmap’, ‘commonmark’, ‘glue’, ‘bslib’, ‘cachem’, ‘miniUI’, ‘igraph’, ‘shiny’, ‘colourpicker’, ‘DT’, ‘dygraphs’, ‘shinyjs’, ‘shinythemes’, ‘threejs’, ‘xts’, ‘rms’, ‘rstan’, ‘StanHeaders’, ‘shinystan’

trying URL 'https://cran.rstudio.org/src/contrib/rappdirs_0.3.3.tar.gz'
Content type 'application/x-gzip' length 12288 bytes (12 KB)
downloaded 12 KB

trying URL 'https://cran.rstudio.org/src/contrib/sass_0.4.0.tar.gz'
Content type 'application/x-gzip' length 3022459 bytes (2.9 MB)
downloaded 2.9 MB

trying URL 'https://cran.rstudio.org/src/contrib/httpuv_1.6.1.tar.gz'
Content type 'application/x-gzip' length 1812058 bytes (1.7 MB)
downloaded 1.7 MB

trying URL 'https://cran.rstudio.org/src/contrib/digest_0.6.27.tar.gz'
Content type 'application/x-gzip' length 164373 bytes (160 KB)
downloaded 160 KB

trying URL 'https://cran.rstudio.org/src/contrib/htmltools_0.5.1.1.tar.gz'
Content type 'application/x-gzip' length 71567 bytes (69 KB)
downloaded 69 KB

trying URL 'https://cran.rstudio.org/src/contrib/sourcetools_0.1.7.tar.gz'
Content type 'application/x-gzip' length 24155 bytes (23 KB)
downloaded 23 KB

trying URL 'https://cran.rstudio.org/src/contrib/later_1.2.0.tar.gz'
Content type 'application/x-gzip' length 64104 bytes (62 KB)
downloaded 62 KB

trying URL 'https://cran.rstudio.org/src/contrib/promises_1.2.0.1.tar.gz'
Content type 'application/x-gzip' length 3120504 bytes (3.0 MB)
downloaded 3.0 MB

trying URL 'https://cran.rstudio.org/src/contrib/fastmap_1.1.0.tar.gz'
Content type 'application/x-gzip' length 44277 bytes (43 KB)
downloaded 43 KB

trying URL 'https://cran.rstudio.org/src/contrib/commonmark_1.7.tar.gz'
Content type 'application/x-gzip' length 134002 bytes (130 KB)
downloaded 130 KB

trying URL 'https://cran.rstudio.org/src/contrib/glue_1.4.2.tar.gz'
Content type 'application/x-gzip' length 99049 bytes (96 KB)
downloaded 96 KB

trying URL 'https://cran.rstudio.org/src/contrib/bslib_0.2.5.1.tar.gz'
Content type 'application/x-gzip' length 3810412 bytes (3.6 MB)
downloaded 3.6 MB

trying URL 'https://cran.rstudio.org/src/contrib/cachem_1.0.5.tar.gz'
Content type 'application/x-gzip' length 24974 bytes (24 KB)
downloaded 24 KB

trying URL 'https://cran.rstudio.org/src/contrib/miniUI_0.1.1.1.tar.gz'
Content type 'application/x-gzip' length 97958 bytes (95 KB)
downloaded 95 KB

trying URL 'https://cran.rstudio.org/src/contrib/igraph_1.2.6.tar.gz'
Content type 'application/x-gzip' length 2715500 bytes (2.6 MB)
downloaded 2.6 MB

trying URL 'https://cran.rstudio.org/src/contrib/shiny_1.6.0.tar.gz'
Content type 'application/x-gzip' length 4170497 bytes (4.0 MB)
downloaded 4.0 MB

trying URL 'https://cran.rstudio.org/src/contrib/colourpicker_1.1.0.tar.gz'
Content type 'application/x-gzip' length 1833280 bytes (1.7 MB)
downloaded 1.7 MB

trying URL 'https://cran.rstudio.org/src/contrib/DT_0.18.tar.gz'
Content type 'application/x-gzip' length 1578749 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.rstudio.org/src/contrib/dygraphs_1.1.1.6.tar.gz'
Content type 'application/x-gzip' length 318939 bytes (311 KB)
downloaded 311 KB

trying URL 'https://cran.rstudio.org/src/contrib/shinyjs_2.0.0.tar.gz'
Content type 'application/x-gzip' length 1043727 bytes (1019 KB)
downloaded 1019 KB

trying URL 'https://cran.rstudio.org/src/contrib/shinythemes_1.2.0.tar.gz'
Content type 'application/x-gzip' length 972144 bytes (949 KB)
downloaded 949 KB

trying URL 'https://cran.rstudio.org/src/contrib/threejs_0.3.3.tar.gz'
Content type 'application/x-gzip' length 866293 bytes (845 KB)
downloaded 845 KB

trying URL 'https://cran.rstudio.org/src/contrib/xts_0.12.1.tar.gz'
Content type 'application/x-gzip' length 517875 bytes (505 KB)
downloaded 505 KB

trying URL 'https://cran.rstudio.org/src/contrib/rms_6.2-0.tar.gz'
Content type 'application/x-gzip' length 575287 bytes (561 KB)
downloaded 561 KB

trying URL 'https://cran.rstudio.org/src/contrib/rstan_2.21.2.tar.gz'
Content type 'application/x-gzip' length 1152008 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.org/src/contrib/StanHeaders_2.21.0-7.tar.gz'
Content type 'application/x-gzip' length 1402572 bytes (1.3 MB)
downloaded 1.3 MB

trying URL 'https://cran.rstudio.org/src/contrib/shinystan_2.5.0.tar.gz'
Content type 'application/x-gzip' length 2400413 bytes (2.3 MB)
downloaded 2.3 MB

trying URL 'https://cran.rstudio.org/src/contrib/survHE_1.1.2.tar.gz'
Content type 'application/x-gzip' length 111452 bytes (108 KB)
downloaded 108 KB

  • installing source package 'rappdirs' ...
    ** package 'rappdirs' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'rappdirs'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/rappdirs'
    Warning in install.packages :
    installation of package ‘rappdirs’ had non-zero exit status
  • installing source package 'digest' ...
    ** package 'digest' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'digest'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/digest'
  • restoring previous 'C:/Users/SONY/Documents/R/win-library/3.6/digest'
    Warning in install.packages :
    installation of package ‘digest’ had non-zero exit status
  • installing source package 'sourcetools' ...
    ** package 'sourcetools' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'sourcetools'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/sourcetools'
    Warning in install.packages :
    installation of package ‘sourcetools’ had non-zero exit status

  • installing source package 'later' ...
    ** package 'later' successfully unpacked and MD5 sums checked
    ** using staged installation


    WARNING: this package has a configure script
    It probably needs manual configuration


** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'later'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/later'
    Warning in install.packages :
    installation of package ‘later’ had non-zero exit status
  • installing source package 'fastmap' ...
    ** package 'fastmap' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'fastmap'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/fastmap'
    Warning in install.packages :
    installation of package ‘fastmap’ had non-zero exit status
  • installing source package 'commonmark' ...
    ** package 'commonmark' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'commonmark'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/commonmark'
    Warning in install.packages :
    installation of package ‘commonmark’ had non-zero exit status
  • installing source package 'glue' ...
    ** package 'glue' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'glue'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/glue'
  • restoring previous 'C:/Users/SONY/Documents/R/win-library/3.6/glue'
    Warning in install.packages :
    installation of package ‘glue’ had non-zero exit status
  • installing source package 'igraph' ...
    ** package 'igraph' successfully unpacked and MD5 sums checked
    ** using staged installation
    Warning in system("sh ./configure.win") : 'sh' not found
    ERROR: configuration failed for package 'igraph'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/igraph'
    Warning in install.packages :
    installation of package ‘igraph’ had non-zero exit status
  • installing source package 'xts' ...
    ** package 'xts' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'xts'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/xts'
    Warning in install.packages :
    installation of package ‘xts’ had non-zero exit status
  • installing source package 'StanHeaders' ...
    ** package 'StanHeaders' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'StanHeaders'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/StanHeaders'
    Warning in install.packages :
    installation of package ‘StanHeaders’ had non-zero exit status
  • installing source package 'htmltools' ...
    ** package 'htmltools' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'htmltools'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/htmltools'
  • restoring previous 'C:/Users/SONY/Documents/R/win-library/3.6/htmltools'
    Warning in install.packages :
    installation of package ‘htmltools’ had non-zero exit status
    ERROR: dependency 'later' is not available for package 'promises'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/promises'
    Warning in install.packages :
    installation of package ‘promises’ had non-zero exit status
    ERROR: dependency 'fastmap' is not available for package 'cachem'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/cachem'
    Warning in install.packages :
    installation of package ‘cachem’ had non-zero exit status
    ERROR: dependency 'igraph' is not available for package 'threejs'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/threejs'
    Warning in install.packages :
    installation of package ‘threejs’ had non-zero exit status
    ERROR: dependency 'StanHeaders' is not available for package 'rstan'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/rstan'
    Warning in install.packages :
    installation of package ‘rstan’ had non-zero exit status
    ERROR: dependency 'rappdirs' is not available for package 'sass'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/sass'
    Warning in install.packages :
    installation of package ‘sass’ had non-zero exit status
    ERROR: dependencies 'promises', 'later' are not available for package 'httpuv'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/httpuv'
    Warning in install.packages :
    installation of package ‘httpuv’ had non-zero exit status
    ERROR: dependency 'promises' is not available for package 'DT'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/DT'
    Warning in install.packages :
    installation of package ‘DT’ had non-zero exit status
    ERROR: dependency 'xts' is not available for package 'dygraphs'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/dygraphs'
    Warning in install.packages :
    installation of package ‘dygraphs’ had non-zero exit status
  • installing source package 'rms' ...
    ** package 'rms' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'rms'

  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/rms'
    Warning in install.packages :
    installation of package ‘rms’ had non-zero exit status
    ERROR: dependency 'sass' is not available for package 'bslib'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/bslib'
    Warning in install.packages :
    installation of package ‘bslib’ had non-zero exit status
    ERROR: dependencies 'rms', 'rstan', 'StanHeaders' are not available for package 'survHE'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/survHE'
    Warning in install.packages :
    installation of package ‘survHE’ had non-zero exit status
    ERROR: dependencies 'httpuv', 'sourcetools', 'later', 'promises', 'fastmap', 'commonmark', 'bslib', 'cachem' are not available for package 'shiny'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/shiny'
    Warning in install.packages :
    installation of package ‘shiny’ had non-zero exit status
    ERROR: dependency 'shiny' is not available for package 'miniUI'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/miniUI'
    Warning in install.packages :
    installation of package ‘miniUI’ had non-zero exit status
    ERROR: dependency 'shiny' is not available for package 'shinyjs'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/shinyjs'
    Warning in install.packages :
    installation of package ‘shinyjs’ had non-zero exit status
    ERROR: dependency 'shiny' is not available for package 'shinythemes'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/shinythemes'
    Warning in install.packages :
    installation of package ‘shinythemes’ had non-zero exit status
    ERROR: dependencies 'miniUI', 'shiny', 'shinyjs' are not available for package 'colourpicker'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/colourpicker'
    Warning in install.packages :
    installation of package ‘colourpicker’ had non-zero exit status
    ERROR: dependencies 'shiny', 'colourpicker', 'DT', 'dygraphs', 'rstan', 'shinyjs', 'shinythemes', 'threejs', 'xts' are not available for package 'shinystan'
  • removing 'C:/Users/SONY/Documents/R/win-library/3.6/shinystan'
    Warning in install.packages :
    installation of package ‘shinystan’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\SONY\AppData\Local\Temp\RtmpYb5xzi\downloaded_packages’

library("survHE")
Error in library("survHE") : there is no package called ‘survHE’

Thank you

^This is the part to focus on

survHE is not being installed successfully, that is why it doesn't load.

Since you are using an old version of R, the latest version of most packages are only available to you as source code which requires compiling, for compiling packages from source you need to have RTools installed in your system (not in R).

You can download a version of RTools that is compatible with your R version from here

https://cran.r-project.org/bin/windows/Rtools/history.html

Although, I recommend you to update your R version so you get access to precompiled binaries that are much easier to install.

Thank you so much.

appreciate your time.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.