【问题标题】:Installing knitr - troubles安装 knitr - 麻烦
【发布时间】:2016-05-25 11:40:47
【问题描述】:

我在Windows10 环境中运行R 3.3.0RStudio。有谁知道为什么我在尝试安装knitr 时收到此消息。我问了这个问题没有回答。现在我有时间卸载了所有 R 版本和 RStudio 并安装了最新版本。问题并没有消失

install.packages("knitr")
    Installing package into ‘\\xxxxx.se/users/Eke/xxx/Documents/R/win-library/3.3’
    (as ‘lib’ is unspecified)
    also installing the dependencies ‘mime’, ‘stringi’, ‘magrittr’, ‘evaluate’, ‘digest’, ‘formatR’, ‘highr’, ‘markdown’, ‘stringr’, ‘yaml’

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/mime_0.4.zip'
    Content type 'application/zip' length 37402 bytes (36 KB)
    downloaded 36 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/stringi_1.0-1.zip'
    Content type 'application/zip' length 14302873 bytes (13.6 MB)
    downloaded 13.6 MB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/magrittr_1.5.zip'
    Content type 'application/zip' length 149985 bytes (146 KB)
    downloaded 146 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/evaluate_0.9.zip'
    Content type 'application/zip' length 41911 bytes (40 KB)
    downloaded 40 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/digest_0.6.9.zip'
    Content type 'application/zip' length 169272 bytes (165 KB)
    downloaded 165 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/formatR_1.4.zip'
    Content type 'application/zip' length 51790 bytes (50 KB)
    downloaded 50 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/highr_0.6.zip'
    Content type 'application/zip' length 35707 bytes (34 KB)
    downloaded 34 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/markdown_0.7.7.zip'
    Content type 'application/zip' length 167098 bytes (163 KB)
    downloaded 163 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/stringr_1.0.0.zip'
    Content type 'application/zip' length 83487 bytes (81 KB)
    downloaded 81 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/yaml_2.1.13.zip'
    Content type 'application/zip' length 175759 bytes (171 KB)
    downloaded 171 KB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/knitr_1.13.zip'
    Content type 'application/zip' length 860259 bytes (840 KB)
    downloaded 840 KB

    package ‘mime’ successfully unpacked and MD5 sums checked
    package ‘stringi’ successfully unpacked and MD5 sums checked
    package ‘magrittr’ successfully unpacked and MD5 sums checked
    package ‘evaluate’ successfully unpacked and MD5 sums checked
    package ‘digest’ successfully unpacked and MD5 sums checked
    package ‘formatR’ successfully unpacked and MD5 sums checked
    package ‘highr’ successfully unpacked and MD5 sums checked
    package ‘markdown’ successfully unpacked and MD5 sums checked
    package ‘stringr’ successfully unpacked and MD5 sums checked
    package ‘yaml’ successfully unpacked and MD5 sums checked
    package ‘knitr’ successfully unpacked and MD5 sums checked

    The downloaded binary packages are in
        C:\Users\mali\AppData\Local\Temp\RtmpMnOG1B\downloaded_packages
    Error: invalid version specification ‘NA’
    In addition: Warning message:
    In utils:::packageDescription(packageName, fields = "Version") :
      no package 'knitr' was found

【问题讨论】:

    标签: r knitr


    【解决方案1】:

    我正在添加作为答案,因为我无法添加评论。

    这可能是文件夹的权限问题,请尝试在您的配置文件之外的某个位置安装,例如,在 C 或 D 驱动器中安装为“D:/Rlibs”。

    忘了提一下,您始终可以使用.libPaths("../...") 调用其他/新库文件夹

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多