微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

qgisprocess包的安装

如何解决qgisprocess包的安装

我正在寻求帮助以安装软件包,qgisprocess。 据我所知,我必须从 github 安装它:remotes::install_github("paleolimbot/qgisprocess")

the guide之后我应该设置options(qgisprocess.path = "path/to/qgis_process"),但我不知道qgis_process的路径是什么。

我曾尝试使用 options(qgisprocess.path = "C:/Users/MyUser/Documents/R/win-library/4.1/qgisprocess"),然后运行

library(qgisprocess)
qgis_configure()

但我收到这条消息:

Trying getoption('qgisprocess.path'): 'C:/Users/rojas/Documents/R/win-library/4.1/qgisprocess'
Error in processx::run("cmd.exe",c("/c","call",path,args),...): System command 'cmd.exe' Failed,exit status: 1,stderr:
E> "C:/Users/rojas/Documents/R/win-library/4.1/qgisprocess" no se reconoce como un comando interno o externo,E> programa o archivo por lotes ejecutable.

Sys.getenv('R_QGISPROCESS_PATH') was not found.
Trying 'qgis_process' on PATH
Error in processx::run("cmd.exe",stderr:
E> "qgis_process" no se reconoce como un comando interno o externo,E> programa o archivo por lotes ejecutable.

No QGIS installation containing 'qgis_process' found!

此外,使用 options(qgisprocess.path = "C:/Program Files/QGIS 3.16/OSGeo4W.bat")(因为我正在阅读 the documentation 已弃用的软件包版本 RQGIS3),并且在运行后

library(qgisprocess)
qgis_configure()

我收到这条消息:

Trying getoption('qgisprocess.path'): 'C:/Program Files/QGIS 3.16/OSGeo4W.bat'
Success!
Output did not contain expected version information and was:

run o-help for a list of available commands 
G:\Mi unidad\Path-to-my-current-Project-directory>
Either `message` or `class` must be supplied.

所以,我不知道我到底做错了什么。事实上,我不明白文档中的 options(qgisprocess.path = "path/to/qgis_process") 指的是什么。 'qgis_process' 是来自包还是来自 QGIS 的文件

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。