Package or namespace load failed for ‘RxODE’ .onAttach failed in attachNamespace() for 'RxODE',

六月ゝ 毕业季﹏ 提交于 2020-05-16 08:06:49

问题


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...

Error: package or namespace load failed for ‘RxODE’: .onAttach failed in attachNamespace() for 'RxODE', details: call: !.rxWinRtoolsPath(retry = NA) error: invalid argument type

I have tried .libPaths(.libPaths()[2]), reinstalling all my packages, and to install RxODE with dependencies=TRUE.

Any insight would be greatly appreciated.


回答1:


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")

Best wishes



来源:https://stackoverflow.com/questions/59994246/package-or-namespace-load-failed-for-rxode-onattach-failed-in-attachnamespace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!