在R 3.6.3中安装加载gazepath失败,依赖包问题求助
问题:R 3.6.3中安装Gazepath 1.3 GUI的依赖包冲突问题
我尝试在R中安装/加载用于眼动数据分析的Gazepath 1.3 GUI,该工具自2020-02-09后未更新,不支持R 4+版本。此前它可在R 3.6.3中正常运行,因此我在Windows 10系统中使用同一版本R,试图独立于新版本运行该工具,但遇到如下依赖包问题:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace 'rlang' 0.4.11 is being loaded, but >= 1.0.6 is required Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace Execution halted ERROR: lazy loading failed for package 'lifecycle' * removing 'C:/Users/OneDrive/Documents/R/win-library/3.6/lifecycle' Warning in install.packages : installation of package ‘lifecycle’ had non-zero exit status * installing *source* package 'bslib' ... ** package 'bslib' successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace 'htmltools' 0.5.1.1 is being loaded, but >= 0.5.4 is required Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace Execution halted ERROR: lazy loading failed for package 'bslib' * removing 'C:/Users/OneDrive/Documents/R/win-library/3.6/bslib' Warning in install.packages : installation of package ‘bslib’ had non-zero exit status ERROR: dependency 'lifecycle' is not available for package 'scales' * removing 'C:/Users/OneDrive/Documents/R/win-library/3.6/scales' Warning in install.packages : installation of package ‘scales’ had non-zero exit status ERROR: dependencies 'bslib', 'lifecycle' are not available for package 'shiny' * removing 'C:/Users/OneDrive/Documents/R/win-library/3.6/shiny' Warning in install.packages : installation of package ‘shiny’ had non-zero exit status The downloaded source packages are in ‘C:\Users\AppData\Local\Temp\Rtmp4iqJK2\downloaded_packages’ > library ("gazepath") Error: package or namespace load failed for ‘gazepath’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘scales’
已尝试的解决方法
- 单独安装依赖包(
cli,lifecycle,rlang,htmltools,bslib,scales,shiny),但仍出现相同错误。 - 尝试使用Dateback Package安装指定日期(2020-02-09)可用的依赖包,但在R 4.2.1中报错:
> dateback::install(pkgs = "gazepath", date = "2020-02-09") Error in read.dcf(file = tmpf) : cannot open the connection In addition: Warning message: In read.dcf(file = tmpf) : cannot open compressed file 'C:\Users\AppData\Local\Temp\RtmpC63Vow\dateback\downloaded_packages\src\contrib\PACKAGES', probable reason 'No such file or directory' Error in dateback::install(pkgs = "gazepath", date = "2020-02-09") : An error occured during utils::install.packages. Downloaded contents are in: C:\Users\AppData\Local\Temp\RtmpC63Vow\dateback\downloaded_packages
- 在R 3.6.3中安装devtools后出现报错:
Error in loadNamespace(name) : there is no package called ‘devtools’
当前R环境信息
R version 3.6.3 (2020-02-29) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 22621) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets [6] methods base loaded via a namespace (and not attached): [1] compiler_3.6.3 tools_3.6.3
现寻求解决该问题的有效方法。
内容的提问来源于stack exchange,提问作者Chaeyeon Lim
相关产品推荐
相关产品推荐

