drm() function + inslall "drc" issue

Hi, everyone,

Have an issue: not working drm function for me:
?drm()

Error in .helpForCall(topicExpr, parent.frame()) :
no methods for ‘drm’ and no documentation for it as a function

Here is drm() function description: https://www.rdocumentation.org/packages/drm/versions/0.5-8

What i have tried already, based on search:

  1. install.packages("drm")
    Warning in install.packages :
    package ‘drm’ is not available (for R version 3.6.1)

  2. install.packages("drc")

also installing the dependency ‘car’....

Any advises for the R-Studio beginner would be highly appreciated !

install.packages("drc")
also installing the dependency ‘car’

There is a binary version available but the source version is later:
binary source needs_compilation
car 3.0-8 3.0-9 FALSE

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/drc_3.0-1.zip'
Content type 'application/zip' length 928888 bytes (907 KB)
downloaded 907 KB

package ‘drc’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\nmuravskaya\AppData\Local\Temp\Rtmpw76Ce1\downloaded_packages
installing the source package ‘car’

trying URL 'https://cran.rstudio.com/src/contrib/car_3.0-9.tar.gz'
Content type 'application/x-gzip' length 500448 bytes (488 KB)
downloaded 488 KB

  • installing source package 'car' ...
    ** package 'car' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Warning message:
    package 'carData' was built under R version 3.6.3
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    there is no package called 'foreign'
    Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
    Execution halted
    ERROR: lazy loading failed for package 'car'
  • removing 'C:/Users/nmuravskaya/AppData/Local/Continuum/anaconda3/Lib/R/library/car'
    Warning in install.packages :
    installation of package ‘car’ had non-zero exit status

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

The drm package hasn't been on CRAN since at least 8 years ago and it doesn't seem to be maintained any more but you can still install it from the GitHub CRAN mirror.

remotes::install_github("cran/drm")

This other error message is telling you that you are missing a package dependency and you need to install it, the problem is that the foreing package requires R >= 4.0.0 so you need to update your R version to be able to install this package.

Thanks @andresrcs for the prompt response. it works!

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