问题描述
我正在尝试使用RxODE创建模型仿真,该R代码以前在同事的计算机上是成功的. R刚刚重新安装在我当前正在使用的计算机上(版本3.6.2).我继续收到此错误...
I am trying to create a model simulation using RxODE, this R-code was successful previously on a colleague's computer. R was just reinstalled on the computer I am currently using (version 3.6.2). I continue to get this error...
错误:"RxODE"的包或名称空间加载失败: .onAttach在"RxODE"的attachNamespace()中失败,详细信息: 呼叫:!.rxWinRtoolsPath(重试=不适用) 错误:参数类型无效
Error: package or namespace load failed for ‘RxODE’: .onAttach failed in attachNamespace() for 'RxODE', details: call: !.rxWinRtoolsPath(retry = NA) error: invalid argument type
我尝试了.libPaths(.libPaths()[2]),重新安装了我所有的软件包,并安装了依赖关系为TRUE的RxODE.
I have tried .libPaths(.libPaths()[2]), reinstalling all my packages, and to install RxODE with dependencies=TRUE.
任何见识将不胜感激.
Any insight would be greatly appreciated.
推荐答案
https ://github.com/cran/RxODE/issues/1#issuecomment-320900446
我遇到了和您一样的问题,可以通过链接中的说明解决.
I had the same problem like you and could solve it with the description given in the link.
或者换句话说,只需尝试运行以下代码:
Or in other words, just try to run this code:
path <- Sys.getenv("PATH")
path <- c("C:\Rtools\bin", "C:\Rtools\gcc-4.6.3\bin", path)
path <- paste(path,collapse=";")
Sys.setenv(PATH=path)
Sys.getenv("PATH")
最美好的祝愿
这篇关于"RxODE"的包或名称空间加载失败."RxODE"的attachNamespace()中的onAttach失败,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!