@创建于:2024.5.5
文章目录
在R的 RGui中,使用devtools 安装trajeR。
背景信息
window 64bit,R version 4.1.0 (2021-05-18) 。
在R的Gui中(以管理员身份打开),尝试安装trajeR包。
1. 报错信息
报错信息如下:
> install.packages("trajeR")
将程序包安装入‘C:/Users/chen_/Documents/R/win-library/4.1’
(因为‘lib’没有被指定)
Warning message:
package ‘trajeR’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
2. 尝试使用指定的清华镜像,没有解决
使用下面两种方式,还是无法安装trajeR包。
# 方式 1
options(repos=structure(c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")))
install.packages("trajeR")
# 方式 2
install.packages("trajeR", repos="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")
3. 找到原因:官网把包删除了
2024.5.5,在官网发现如下信息:
https://cran.r-project.org/web/packages/trajeR/index.html
Package ‘trajeR’ was removed from the CRAN repository.
Formerly available versions can be obtained from the archive.
Archived on 2024-01-12 as issues were not corrected despite reminders.
A summary of the most recent check results can be obtained from the
check results archive.Please use the canonical form
https://CRAN.R-project.org/package=trajeR to link to this page.
4. 尝试从网上下载,然后安装。没有成功
download.fi