如何在R中安装程序包LIDR解决错误?
我正在使用Amazon Sagemaker笔记本实例。而且我正在尝试将LIDR软件包安装到r笔记本中,但是我有以下错误。 我怎么能。解决吗?
代码;
install.packages("lidR")
错误;
installing the dependencies ‘units’, ‘lwgeom’, ‘raster’, ‘sf’, ‘stars’, ‘terra’
Warning message in install.packages("lidR"):
“installation of package ‘units’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘terra’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘raster’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘sf’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘lwgeom’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘stars’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘lidR’ had non-zero exit status”
Updating HTML index of packages in '.Library'
Making 'packages.html' ...
done
I am using amazon sagemaker notebook instance. And i am trying to install lidR package into R notebook but i got following errors.
How can i. Solve it?
Code;
install.packages("lidR")
Error;
installing the dependencies ‘units’, ‘lwgeom’, ‘raster’, ‘sf’, ‘stars’, ‘terra’
Warning message in install.packages("lidR"):
“installation of package ‘units’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘terra’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘raster’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘sf’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘lwgeom’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘stars’ had non-zero exit status”
Warning message in install.packages("lidR"):
“installation of package ‘lidR’ had non-zero exit status”
Updating HTML index of packages in '.Library'
Making 'packages.html' ...
done
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用conda在jupyterlab实例上安装软件包
打开一个终端并运行以下命令:
之后您应该在笔记本上库(lidr)(如果需要时重新启动R内核)
Use conda to install the package
Open a terminal on your JupyterLab instance and run the following commands:
You should be able to library(lidR) on your notebook after that (restart the R kernel if needed)