安装
- 编译问题
主要还是集中在ubuntu 或linux 服务器上,比如:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/data/yzpen/R/x86_64-pc-linux-gnu-library/4.0/igraph/libs/igraph.so':
libmkl_gf_lp64.so: cannot open shared object file: No such file or directory
Calls: <Anonymous> ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
查了下,跟mkl 相关,可能跟mkl 的路径或下载有关:
https://github.com/pytorch/pytorch/issues/24334
有缘再去解决这个问题吧。
吊诡的是,其他的Linux 服务器就可以了:
[1] "MesKit is already installed."
[1] "maftools is already installed."
[1] "MesKit, maftools are already in your computer."
- 临时文件
remotes::install_git("https://gitee.com/mugpeng/pengToolkit.git") Downloading git repo https://gitee.com/mugpeng/pengToolkit.git These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?
1: All 2: CRAN packages only 3: None 4: BiocManager (1.30.15 -> 1.30.16) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 3 √ checking for file 'C:\Users\bio8\AppData\Local\Temp\Rtmp4gBLKm\file4cf0557636d6/DESCRIPTION' ...
preparing 'pengToolkit': √ checking DESCRIPTION meta-information ...
checking for LF line-endings in source and make files and shell scripts
checking for empty or unneeded directories
building 'pengToolkit_0.0.9.tar.gz'
Installing package into ‘C:/Users/bio8/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) Error in library(pengToolkit) : 不存在叫'pengToolkit'这个名字的程辑包 停止执行 Warning message: In i.p(...) : installation of package ‘C:/Users/bio8/AppData/Local/Temp/Rtmp4gBLKm/file4cf0779b3cbe/pengToolkit_0.0.9.tar.gz’ had non-zero exit status
非常神奇的报错,显示R 包不存在。
这里我的做法是直接把R 包移除(直接在.libPaths()),接着重新安装R 包。
- 更新R 包后发生帮助文件错误
非常的诡异,我的gitee 和github 上Rmd 文件都是完整的,但是打开包目录下的内容,却发现是损坏的。
目前发现该步骤是在本来安装有我的R 包以后,如果再次安装,就会发生的问题。
(为此目前我删除了update_myself 函数)
发现是和R 的启动有关,这里重启.rs.restartR(),发现就解决了。