gpt4 book ai didi

r - 如何在 SageMaker Notebook 实例上安装 R 包?

转载 作者:行者123 更新时间:2023-12-04 01:40:33 30 4
gpt4 key购买 nike

我尝试在 Sagemaker 中启动 R notebook 并输入

install.packages("disk.frame")

它给了我错误

also installing the dependencies ‘listenv’, ‘dplyr’, ‘rlang’, ‘furrr’, 
‘future.apply’, ‘fs’, ‘pryr’, ‘fst’, ‘globals’, ‘future’

Warning message in install.packages("disk.frame"):
“installation of package ‘rlang’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘fs’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘pryr’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘fst’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘dplyr’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘disk.frame’ had non-zero exit status”
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

如何在 Sagemaker 上安装 R 包?

最佳答案

感谢您使用 Amazon SageMaker。

这个问题已经解决,你应该可以使用安装 R 包了

install.packages("disk.frame")

install.packages("disk.frame", repo="https://cran.rstudio.com/")

我测试了它并且能够成功地安装带有输出的包

also installing the dependencies ‘listenv’, ‘benchmarkmeData’, ‘doParallel’, ‘bigassertr’, ‘bit’, ‘dplyr’, ‘rlang’, ‘furrr’, ‘future.apply’, ‘fs’, ‘pryr’, ‘fst’, ‘globals’, ‘future’, ‘benchmarkme’, ‘bigreadr’, ‘bit64’

Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

关于r - 如何在 SageMaker Notebook 实例上安装 R 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57601733/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com