问题描述
我正在寻求帮助以安装软件包,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 (将#修改为@)