How to install fftw3 R package in ubuntu 12.04?

I am trying to install fftw3 package through R console

>install.packages("fftw") 

After this command, he asks to choose a crane mirror. I selected a crane mirror, after which an error occurred:

 Loading Tcl/Tk interface ... done Warning: unable to access index for repository http://ftp.iitm.ac.in/cran/src/contrib Warning messages: 1: In open.connection(con, "r") : unable to connect to 'cran.r-project.org' on port 80. 2: In getDependencies(pkgs, dependencies, available, lib) : package 'fftw' is not available (for R version 2.14.1) 

And when I try for fftw3, the following error occurs:

 > install.packages("fftw3") Installing package(s) into '/root/R/x86_64-pc-linux-gnu-library/2.14' (as 'lib' is unspecified) Warning: unable to access index for repository http://ftp.iitm.ac.in/cran/src/contrib Warning message: In getDependencies(pkgs, dependencies, available, lib) : package 'fftw3' is not available (for R version 2.14.1) 

Can someone help me with this?

+4
source share
2 answers

As Paul said, this is probably not package R. There is package R, which is a wrapper for the FFTW library, also called fftw, you should install this:

Link to the CRAN fftw page

In Ubuntu, you have a system requirement to have a proper fftw library installed, which you can probably solve with

 sudo apt-get install fftw3 fftw3-dev pkg-config 
+16
source

The website you linked is talking about the C library, nothing is contained in the R code package. You mistakenly believe that R can install any .tar.gz file as an R library. The R library has a very specific file and directory structure, and the error you get is because .tar.gz does not adhere to this structure.

0
source

All Articles