问题描述
我正在尝试将R库加载到我从文档中了解的Jupyter笔记本(插入符号)中,该文档已在MS Azure ML studio中提供.
I am trying to load a R library into my Jupyter notebook (caret) that I undersand from the documentation is available in MS Azure ML studio already.
但是当我运行它时:
>图书馆(插入符)
> library(caret)
我明白了:
Error in library(caret): there is no package called ‘caret’ Traceback: 1. library(caret) 2. stop(txt, domain = NA)
When I try to load the library, I get the following:
When I try to load the library, I get the following:
>install.packages("caret")
>library(caret)
>install.packages("caret")
>library(caret)
Installing package into ‘/home/nbuser/R’
(as ‘lib’ is unspecified)
also installing the dependencies ‘geometry’, ‘ddalpha’, ‘recipes’
Warning message in install.packages("caret"):
"installation of package ‘ddalpha’ had non-zero exit status"Warning message in install.packages("caret"):
"installation of package ‘recipes’ had non-zero exit status"Warning message in install.packages("caret"):
"installation of package ‘caret’ had non-zero exit status"
推荐答案
可以请您尝试:
install.packages ( 'e1071' , 依赖项 = TRUE )
错误应该是插入符未成功安装.
The error should be the caret not installed successfully.
此致
宇通
这篇关于无法在Jupyter Notebook中加载R库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!