国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

How to install a specific version of a package in R

這篇具有很好參考價(jià)值的文章主要介紹了How to install a specific version of a package in R。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

在使用R語言完成數(shù)據(jù)分析的過程中,很多時(shí)候,因?yàn)轫?xiàng)目實(shí)際需要,我們應(yīng)該指定某些庫文件的安裝包的版本,這個(gè)時(shí)候,我們可以基于devtools包中的函數(shù)install_version來完成。

這里,我們以安裝庫文件ggplot2的安裝包的版本號(hào)為3.3.6為例來說明,即

devtools::install_version("ggplot2",version = "3.3.6",repos = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/")

說明如下:

  • version

版本號(hào)

  • repos

倉庫地址,這里將其指定為清華大學(xué)開源鏡像站的地址

devtools::install_version("ggplot2",version = "3.3.6",repos = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/")
Downloading package from url: https://mirrors.tuna.tsinghua.edu.cn/CRAN//src/contrib/Archive/ggplot2/ggplot2_3.3.6.tar.gz
Installing package into ‘/home/lwk/R/x86_64-pc-linux-gnu-library/4.3(as ‘lib’ is unspecified)
* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (ggplot2)

參考文獻(xiàn)文章來源地址http://www.zghlxwxcb.cn/news/detail-832985.html

  • Installing older versions of packages
  • R 3.2.3 devtools::install_version() fails (.zip file not found)

到了這里,關(guān)于How to install a specific version of a package in R的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • up to date, audited 1 package in 719msfound 0 vulnerabilities npm installnpm install node_modules沒有生

    up to date, audited 1 package in 719msfound 0 vulnerabilities npm installnpm install node_modules沒有生

    D:迅雷下載Student-Work-Management-System-mainStudent-Work-Management-System-mainnpm install up to date, audited 1 package in 719ms found 0 vulnerabilities ?解決方法: 切換到這個(gè)目錄執(zhí)行 ?npm install 這個(gè)目錄才是前端項(xiàng)目根目錄

    2024年02月05日
    瀏覽(24)
  • How to manually install PCL on ubuntu 18.04

    1. Firstly, need to check which version pcl you need to install on your ubuntu system. PCL download link: https://github.com/PointCloudLibrary/pcl/releases?page=2 https://github.com/PointCloudLibrary/pcl/releases?page=2 Find your version: pcl-1.9.1 ?Then click Assets, and download the source code.zip 2. unzip source_code.zip 3. cd source_code 4. 5.? 6. 7.?

    2024年01月21日
    瀏覽(33)
  • 已解決The following specifications were found to be incompatible with the existing python installation

    已解決The following specifications were found to be incompatible with the existing python installation 下滑查看解決方法 The following specifications were found to be incompatible with the existing python installation 對(duì)于 “The following specifications were found to be incompatible with the existing python installation” 的問題有幾種可能

    2024年02月08日
    瀏覽(28)
  • You must install at least one postgresql-client-<version> package

    You must install at least one postgresql-client-<version> package

    使用主機(jī)上的映射端口來連接到 PostgreSQL 數(shù)據(jù)庫。例如,使用以下命令連接到數(shù)據(jù)庫: 出現(xiàn)下面的問題: 分析: 如果您在運(yùn)行 psql 命令時(shí)遇到錯(cuò)誤消息 You must install at least one postgresql-client-version package ,這意味著您的系統(tǒng)缺少 PostgreSQL 客戶端工具。 要解決這個(gè)問題,您需要

    2024年02月10日
    瀏覽(19)
  • how to read dwarf in linux

    Makefile demo.c

    2024年02月16日
    瀏覽(26)
  • How to implement markdown syntax in notion?

    How to implement markdown syntax in notion?

    ??Notion is a powerful productivity tool that enables you to organize your life, work, and ideas in one place. It supports a variety of formatting options, including Markdown, which can be used to add structure and emphasis to your text. Here are some ways you can implement Markdown syntax in Notion: ??Also, Markdown shortcuts automatically format as

    2024年02月12日
    瀏覽(23)
  • How to use jupyterlab in Ubuntu 22.04

    How to use jupyterlab in Ubuntu 22.04

    這個(gè)時(shí)候,系統(tǒng)會(huì)自動(dòng)打開瀏覽器,頁面會(huì)自動(dòng)跳轉(zhuǎn)到http://localhost:8888/lab頁面。 在終端窗口中按Ctrl+C 切換到瀏覽器,我們將會(huì)看到下面的畫面

    2024年02月11日
    瀏覽(27)
  • How to use notebook in Ubuntu 22.04

    How to use notebook in Ubuntu 22.04

    這個(gè)時(shí)候,系統(tǒng)會(huì)自動(dòng)打開瀏覽器,瀏覽器會(huì)自動(dòng)跳轉(zhuǎn)到頁面http://localhost:8888/tree,如下圖所示: 如果我們希望停止服務(wù)運(yùn)行,可以在終端窗口中按Ctrl+C,這個(gè)時(shí)候,終端窗口命令行會(huì)出現(xiàn)如下變化 我們?cè)賮碛^察notebook瀏覽器畫面,發(fā)現(xiàn)沒有任何變化。

    2024年02月10日
    瀏覽(27)
  • How to disable certificate validations in the Java HTTP Client

    Java 11 introduced the?HTTP Client, an API that made it easier to send HTTP requests with vanilla Java. By default, it throws an exception if there are certificate path or hostname verification errors in the request. Let’s see how to bypass certificate validations for cases where this is really necessary. To ignore both certificate path and hostname verif

    2024年01月19日
    瀏覽(17)
  • How to understand the Trusted Intelligent Computing Service in Huawei Cloud

    How to understand the Trusted Intelligent Computing Service in Huawei Cloud

    ??可信智能計(jì)算服務(wù)TICS( Trusted Intelligent Computing Service )打破數(shù)據(jù)孤島,在數(shù)據(jù)隱私保護(hù)的前提下,實(shí)現(xiàn)行業(yè)內(nèi)部、各行業(yè)間的多方數(shù)據(jù)聯(lián)合分析和聯(lián)邦計(jì)算。TICS基于安全多方計(jì)算MPC、區(qū)塊鏈等技術(shù),實(shí)現(xiàn)了數(shù)據(jù)在存儲(chǔ)、流通、計(jì)算過程中端到端的安全和可審計(jì),推動(dòng)了

    2024年02月03日
    瀏覽(21)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包