Code Monkey home page Code Monkey logo

Comments (5)

marcopark90 avatar marcopark90 commented on July 29, 2024

It looks like that you have to install the package car
https://cran.r-project.org/web/packages/car/index.html

from chainladder.

leokpmak avatar leokpmak commented on July 29, 2024

I have assessed the link provided and installed the package by downloading the zip file. However, the same message still exist when I run library(car) or library(ChainLadder)

library(car)
Error in library(car) : there is no package called ‘car’
library(ChainLadder)
Error: package or namespace load failed for ‘ChainLadder’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘car’
In addition: Warning message:
package ‘ChainLadder’ was built under R version 3.5.3

from chainladder.

mages avatar mages commented on July 29, 2024

Try in the R console:

install.packages("car")

For more information see also the 'Installing packages' section in the R Installation and Administration Manual.

from chainladder.

leokpmak avatar leokpmak commented on July 29, 2024

I have tried this before but failed:

install.packages("car")
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/
Warning in install.packages :
dependency ‘pbkrtest’ is not available

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

installing the source package ‘car’

trying URL 'https://cran.rstudio.com/src/contrib/car_3.0-8.tar.gz'
Content length 499932 bytes (488 KB)
downloaded 488 KB

ERROR: dependency 'pbkrtest' is not available for package 'car'

  • removing 'D:/Program Files/R/R-3.5.2/library/car'
    In R CMD INSTALL
    Warning in install.packages :
    installation of package ‘car’ had non-zero exit status

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

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

from chainladder.

marcopark90 avatar marcopark90 commented on July 29, 2024

You have two issues:

  1. I assume you are on a Windows machine. Some R packages need to be compiled, Windows can not do this natively and therefore you need to install an additional software, Rtools. https://cran.r-project.org/bin/windows/Rtools/ make sure to install the version compatible with yuor R version and add the environment path.
  2. As you can see the car package has pbkrtest listed as a dependency. So you have to install this specific package before installing car. If you want to have all this process taken care automatically try install.packages("package-name", dependencies = TRUE)

from chainladder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.