1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > package ‘car’ is not available (for R version 3.4.4)

package ‘car’ is not available (for R version 3.4.4)

时间:2023-03-11 23:37:53

相关推荐

package ‘car’ is not available (for R version 3.4.4)

一:Error:package ‘car’ is not available (for R version 3.4.4)

Update version of R on Ubuntu:

Ubuntu Packages For R - Brief Instructions

Install RGet 5000+ CRAN PackagesAcknowledgements

Install R

Package for thecurrent R 4.0.release* are available for most stable Desktop releases of Ubuntu until their official end of life date. However, only the latest Long Term Support (LTS) release is fully supported. As of November 1, the supported releases are

Groovy Gorilla (20.10, amd64 only),Focal Fossa (20.04; LTS and amd64 only),Bionic Beaver (18.04; LTS), andXenial Xerus (16.04; LTS).

Run these lines (asrootor by prefixingsudo) to tell Ubuntu about the R binaries at CRAN.

# update indicesapt update -qq# install two helper packages we needapt install --no-install-recommends software-properties-common dirmngr# import the signing key (by Michael Rutter) for these repoapt-key adv --keyserver --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as neededadd-apt-repository "deb https://cloud.r-/bin/linux/ubuntu $(lsb_release -cs)-cran40/"

Here we uselsb_release -csto access which Ubuntu flavor you run: one of “groovy”, “focal”, “bionic”, …

Then run

apt install --no-install-recommends r-base

to to install R and its dependencies.

For more detailed instructions, including details on administration and maintenance of R Packages, see thefull README.

For older R releases, see thecorresponding README.

Get 5000+ CRAN Packages

Run this command (asrootor by prefixingsudo) to add the current R 4.0 or later ‘c2d4u’ repository:

add-apt-repository ppa:c2d4u.team/c2d4u4.0+

to add the key id for this repository, add the repository, and update the index. You can now doapt install --no-install-recommends r-cran-rstanorapt install --no-install-recommends r-cran-tidyverse(again as userrootor viasudo)

二:安装问题:ERROR: configuration failed for package ‘curl’ , installation of package ‘curl’ had non-zero exit status

按着红框提示安装需要安装的package,

sudo apt install libcurl4-openssl-dev

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。