安装

  • 编译问题

主要还是集中在ubuntu 或linux 服务器上,比如:

  1. Error in dyn.load(file, DLLpath = DLLpath, ...) :
  2. unable to load shared object '/home/data/yzpen/R/x86_64-pc-linux-gnu-library/4.0/igraph/libs/igraph.so':
  3. libmkl_gf_lp64.so: cannot open shared object file: No such file or directory
  4. Calls: <Anonymous> ... asNamespace -> loadNamespace -> library.dynam -> dyn.load

查了下,跟mkl 相关,可能跟mkl 的路径或下载有关:

https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL-missing-libmkl-gf-lp64-so/m-p/987462

https://github.com/pytorch/pytorch/issues/24334

有缘再去解决这个问题吧。

吊诡的是,其他的Linux 服务器就可以了:

  1. [1] "MesKit is already installed."
  2. [1] "maftools is already installed."
  3. [1] "MesKit, maftools are already in your computer."
  • 临时文件
  1. 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?
  2. 1: All 2: CRAN packages only 3: None 4: BiocManager (1.30.15 -> 1.30.16) [CRAN]
  3. 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' ...
  4. preparing 'pengToolkit': checking DESCRIPTION meta-information ...
  5. checking for LF line-endings in source and make files and shell scripts
  6. checking for empty or unneeded directories
  7. building 'pengToolkit_0.0.9.tar.gz'
  8. 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 包后发生帮助文件错误

03. 报错集合 - 图1

非常的诡异,我的gitee 和github 上Rmd 文件都是完整的,但是打开包目录下的内容,却发现是损坏的。

目前发现该步骤是在本来安装有我的R 包以后,如果再次安装,就会发生的问题。

(为此目前我删除了update_myself 函数)

参见:https://community.rstudio.com/t/in-downloading-the-packages-lazy-load-database-error-rdb-file-is-corrupt-how-to-resolve/83977/5

发现是和R 的启动有关,这里重启.rs.restartR(),发现就解决了。