R - installation of the FFTW3 package on a Windows machine

I am trying to plot a cartogram using R following Gastner and Newman 's algorithm on diffusion techniques to create density alignment maps

I found a recipe on how to do this with packages Getcartr

and Rcartogram

; however, this requires the installation of the Fast Fourier Transform libraries FFTW3

and fftw

.

I installed easily fftw

from CRAN, but I have a problem with FFTW3

which I could only find in the archive here .

When trying to install a package from a .zip file, the following error message appears:

install.packages(choose.files(), type="source", repos=NULL)

Installing the package in the "H: /R.shiny.tutorial/libraries" folder (as lib

not specified)

Warning c read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type"))

: Unable to open compressed file 'fftw-3.3.4 / DESCRIPTION', probable cause "No such file or directory"

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type"))

: cannot open connection

Warning in install.packages

: run command '"Q: /RSTUD301.001/R-32~1.0/bin/i386/R" CMD INSTALL -l "H: \ R.shiny.tutorial \ libraries" "F: / cartogram / fftw- 3.3.4.zip "'had status 1 Warning in install.packages

: package installation' F: /cartogram/fftw-3.3.4.zip had non-zero exit status

I've found some tips for installing FFTW3

on Mac and Linux, but I'm working on a Windows machine .

I found similar problems on the internet, but their solutions don't work for me.

Here is mine session.info()

:

R version 3.2.0 (2015-04-16) 
Platform: **i386-w64-mingw32/i386 (32-bit)**
Running under: **Windows 7 x64 (build 7601) Service Pack 1**

locale: 
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252 
[4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252     

attached base packages: 
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached): 
[1] tools_3.2.0 

      

You can help?

+3


source to share





All Articles