用下列代码安装BUGSnet包总是报错
<remotes::install_github("audrey-b/BUGSnet@v1.1.0", upgrade = TRUE, build_vignettes = TRUE,dependencies = TRUE)
using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error: package or namespace load failed for 'rjags':
.onLoad failed in loadNamespace() for 'rjags', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'E:/R-4.2.1/library/rjags/libs/x64/rjags.dll':
LoadLibrary failure: 找不到指定的程序。
Execution halted
ERROR: lazy loading failed for package 'BUGSnet'
─ removing 'C:/Users/ADMINI1/AppData/Local/Temp/RtmpU9Vyti/Rinst49e0297158e/BUGSnet'
ERROR: package installation failed
Error: Failed to install 'BUGSnet' from GitHub:
! System command 'Rcmd.exe' failed
In addition: Warning message:
In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying E:\R-4.2.1\library\00LOCK\cli\libs\x64\cli.dll to E:\R-4.2.1\library\cli\libs\x64\cli.dll: Permission denied