Rttf2pt1是不可用的。

时间:2023-01-15 17:43:18

I am trying to install the package extrafont in R, but I get an error message about dependency "Rttf2pt1" is not available. I tried to find the package Rttf2pt1 in the CRAN repository, but no luck there. Does anyone know how to solve it?

我正在尝试在R中安装包extrafont,但是我得到了一个关于依赖项“Rttf2pt1”的错误消息。我试图在CRAN存储库中找到Rttf2pt1包,但是没有找到。有人知道怎么解决吗?

Thanks!

谢谢!

2 个解决方案

#1


2  

It might depend on your R version because apparently Rttf2pt1 is not built for the current version. But try

它可能取决于您的R版本,因为显然Rttf2pt1不是为当前版本构建的。但试着

install.packages("http://cran.r-project.org/src/contrib/Archive/Rttf2pt1/Rttf2pt1_1.2.tar.gz")

or try it via the author's github using devtools

或者使用devtools通过作者的github进行尝试。

install.packages("devtools")
require(devtools)
install_github("Rttf2pt1", "wch")

#2


0  

I had the same problem and found a solution that worked for me:

我遇到了同样的问题,找到了一个对我有用的解决方案:

I installed the package manually. To do so

我手动安装了这个包。这样做

  1. Download the package in a format compatible with your system on https://cran.r-project.org/web/packages/Rttf2pt1/index.html
  2. 在https://cran.r-project.org/web/packages/Rttf2pt1/index.html下载与系统兼容的格式
  3. Run install.packages('C:/Users/eddy/Downloads/Rttf2pt1_1.3.5.zip', repos = NULL) and replace it with the path where you stored the downloaded file.
  4. 运行install.packages(“C:/用户/涡流/下载/ Rttf2pt1_1.3.5。将其替换为存储已下载文件的路径。

#1


2  

It might depend on your R version because apparently Rttf2pt1 is not built for the current version. But try

它可能取决于您的R版本,因为显然Rttf2pt1不是为当前版本构建的。但试着

install.packages("http://cran.r-project.org/src/contrib/Archive/Rttf2pt1/Rttf2pt1_1.2.tar.gz")

or try it via the author's github using devtools

或者使用devtools通过作者的github进行尝试。

install.packages("devtools")
require(devtools)
install_github("Rttf2pt1", "wch")

#2


0  

I had the same problem and found a solution that worked for me:

我遇到了同样的问题,找到了一个对我有用的解决方案:

I installed the package manually. To do so

我手动安装了这个包。这样做

  1. Download the package in a format compatible with your system on https://cran.r-project.org/web/packages/Rttf2pt1/index.html
  2. 在https://cran.r-project.org/web/packages/Rttf2pt1/index.html下载与系统兼容的格式
  3. Run install.packages('C:/Users/eddy/Downloads/Rttf2pt1_1.3.5.zip', repos = NULL) and replace it with the path where you stored the downloaded file.
  4. 运行install.packages(“C:/用户/涡流/下载/ Rttf2pt1_1.3.5。将其替换为存储已下载文件的路径。