Is the bigvis package for R not available for R version 3.0.1?

后端 未结 2 1011
隐瞒了意图╮
隐瞒了意图╮ 2021-01-15 10:08

I\'m developing an app designed to handle big data and was having problems graphing the data in a useful way because of the sheer amount of plot points. My initial idea was

相关标签:
2条回答
  • 2021-01-15 10:34

    This works for me, using R v 3.0.1 on Windows 7.

    Directly download the current package from GitHub:

    download.file("https://github.com/hadley/bigvis/archive/master.zip", destfile = "bigvis.zip")

    Unzip it, just so that we leave nothing to chance (though you could use the .zip itself):

    unzip("bigvis.zip")

    and install from source:

    install.packages("bigvis-master", repos = NULL, type = "source")`
    
    0 讨论(0)
  • 2021-01-15 10:45

    assuming you've got Rtools.exe installed, here are the steps to get bigvis installed if it still does not work. you need a 64-bit compiler in order to run the Rcpp package, one of the dependencies of bigvis

    1. in R, confirm g++ isn't installed (or isn't 64-bit)

      Sys.which( "g++" )

    2. download mingw-w64 - http://sourceforge.net/projects/mingw-w64/ (Since the mingw-w64 project on sourceforge.net is moving to mingw-w64.org i suggest to use mingw-w64.org)

    3. when the mingw-w64 installer pops up, be sure to change the architecture row from i686 to x86_64 then let it install

    4. in the windows start menu search bar, type environment and an option edit the system environment variables should pop up. click it.

    5. edit your PATH and add a semicolon plus the folder name of the bin directory of the mingw-w64 program that you just installed. for me, it was ;C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\bin but this will change for future versions

    6. close & re-open R and Sys.which('g++') should now indicate the mingw-x64 directory

      Sys.which('g++')
      "C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE"

    7. devtools:::install_github("hadley/bigvis") should now complete successfully

    0 讨论(0)
提交回复
热议问题