简体   繁体   English

如何为 R 版本 3.5.1 安装“mFilter”包?

[英]How to install "mFilter" package for R version 3.5.1?

I am trying to get hodrick-prescott filter for some time-series, I try to get the "mFilter" package but it says this:我正在尝试获取一些时间序列的 hodrick-prescott 过滤器,我尝试获取“mFilter”包,但它说:

package ‘mFilter’ is not available (for R version 3.5.1)

How can I get installed this package?我怎样才能安装这个包? is there other package who makes the same functions?是否有其他软件包具有相同的功能?

Greetings, Alvaro你好,阿尔瓦罗

It looks like the mFilter package has been removed from the CRAN repository.看起来mFilter包已从 CRAN 存储库中删除。

Package 'mFilter' was removed from the CRAN repository.包“mFilter”已从 CRAN 存储库中删除。 Formerly available versions can be obtained from the archive.以前可用的版本可以从档案中获得。 Archived on 2018-07-20 as check problems were not corrected despite reminders.存档于 2018 年 7 月 20 日,因为尽管有提醒,但检查问题仍未得到纠正。

You can still download the archived package from here您仍然可以从这里下载存档包

And install as per below (just update your path to the downloaded .tar.gz file as appropriate)并按照以下进行安装(只需根据需要更新您下载的 .tar.gz 文件的路径)

install.packages("C:/Users/xxx/xxx/mFilter_0.1-3.tar.gz", repos = NULL, type = "source")

I solved the problem by using remotes library and then pulling the repo directly from github by using "install_github".我通过使用 remotes 库解决了这个问题,然后使用“install_github”直接从 github 中拉出 repo。

Here's the code:这是代码:

library(remotes)
install_github("cran/mFilter")
library(mFilter)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在Windows上安装[R]软件包KernSmooth-错误:软件包'KernSmooth'不可用(对于R版本3.5.1) - unable to install [R] package KernSmooth on Windows- error: package ‘KernSmooth’ is not available (for R version 3.5.1) 如何将兼容版本的 devtools 安装到 R 3.5.1? - How do I install a compatible version of devtools to R 3.5.1? 软件包'olapR'不可用(对于R版本3.5.1) - package ‘olapR’ is not available (for R version 3.5.1) R软件3.5.1版上的Rgdal软件包出现问题 - Problem with Rgdal package on R software version 3.5.1 软件包“ Rstem”不可用(对于R版本3.5.1) - Package ‘Rstem’ is not available (for R version 3.5.1) 如何在 R v3.5.1 中安装“org.Hs.eg.db”包? - How to install "org.Hs.eg.db" package in R v3.5.1? 无法在 MacOS Mojave 10.14.6、R 3.5.1 上安装 devtools 包 - Unable to install devtools package on MacOS Mojave 10.14.6, R 3.5.1 在最新版本的RStudio和R版本(3.5.1 / 3.5.3)中安装软件包的问题 - Issues to install packages in latest version of RStudio and R Versions (3.5.1 / 3.5.3) 如何在 R 版本 3.6.1 中安装 MVPARTwrap 包? - How to install MVPARTwrap package in R version 3.6.1? 如何在R版本3.2.3中安装methylKit软件包 - How to install methylKit package in R version 3.2.3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM