R版本3.0.1中是否有R不可用的bigvis包?

时间:2022-02-27 18:51:00

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 to create a little algorithm that, based on the size of the data, divides the data points into about 30 subsets and takes the average of all the points in these subsets (what are the faults of this implementation by the way)?

我正在开发一款应用程序设计来处理大数据,并且由于大量的情节点,使得数据以一种有用的方式显示出来。我最初的想法是创建一个小算法,根据数据的大小,将数据点划分为大约30个子集,并取这些子集中的所有点的平均值(顺便说一下,这个实现的缺点是什么)?

Then I learned about bigVis, which does a lot of the big data representation for you, and I really want to try this library out.

然后我了解了bigVis,它为你做了很多大的数据展示,我想尝试一下这个库。

I have a problem installing it. I've done:

我安装它有问题。我所做的:

>install_github("devtools")
>install.packages("bigVis")

Warning in install.packages :
  package ‘bigVis’ is not available (for R version 3.0.1)

I've also done:

我也做了:

>install_github("devtools")
>devtools::install_github("bigvis")

* installing *source* package 'bigvis' ...
** libs

*** arch - i386
ERROR: compilation failed for package 'bigvis'
* removing 'C:/Program Files/R/R-3.0.1/library/bigvis'
Error: Command failed (1)

Does anyone know what this error is?

有人知道这个错误是什么吗?

Thanks

谢谢

2 个解决方案

#1


3  

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

假设你有Rtools。安装了exe,如果它仍然不工作,这里是让bigvis安装的步骤。您需要一个64位的编译器来运行Rcpp包,这是bigvis的一个依赖项。

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

    在R中,确认g++没有安装(或者不是64位)

    Sys.which( "g++" )

    Sys。(“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)

    下载mingw-w64 - http://sourceforge.net/projects/mingw-w64/(因为sourceforge.net上的mingw-w64项目正在迁移到mingw-w64.org,我建议使用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

    当mingw-w64安装程序弹出时,一定要将架构行从i686更改为x86_64,然后让它安装。

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

    在windows开始菜单搜索栏,键入环境和一个选项编辑系统环境变量应该弹出。点击它。

  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

    编辑您的路径并添加一个分号,加上您刚刚安装的mingw-w64程序的bin目录的文件夹名。对我来说,它是;C:\程序文件\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\bin,但这将会改变将来的版本。

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

    close & re-open R和Sys.which('g++')现在应该显示mingw-x64目录。

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

    Sys.which(g + +)“C:\ \ MINGW PROGRA ~ 1 - 1.0 ~ 1 \ X86_64 ~ - p \ mingw64 \ bin \ G__ ~ 1. exe”

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

    devtools:: install_github(“hadley/bigvis”)现在应该已经成功完成了。

#2


0  

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

这对我来说很有用,在Windows 7上使用的是R v 3.0.1。

Directly download the current package from GitHub:

直接从GitHub下载当前包:

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

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):

解压缩它,这样我们就不会留下任何机会(尽管您可以使用.zip本身):

unzip("bigvis.zip")

解压缩(“bigvis.zip”)

and install from source:

从源代码和安装:

install.packages("bigvis-master", repos = NULL, type = "source")`

#1


3  

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

假设你有Rtools。安装了exe,如果它仍然不工作,这里是让bigvis安装的步骤。您需要一个64位的编译器来运行Rcpp包,这是bigvis的一个依赖项。

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

    在R中,确认g++没有安装(或者不是64位)

    Sys.which( "g++" )

    Sys。(“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)

    下载mingw-w64 - http://sourceforge.net/projects/mingw-w64/(因为sourceforge.net上的mingw-w64项目正在迁移到mingw-w64.org,我建议使用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

    当mingw-w64安装程序弹出时,一定要将架构行从i686更改为x86_64,然后让它安装。

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

    在windows开始菜单搜索栏,键入环境和一个选项编辑系统环境变量应该弹出。点击它。

  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

    编辑您的路径并添加一个分号,加上您刚刚安装的mingw-w64程序的bin目录的文件夹名。对我来说,它是;C:\程序文件\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\bin,但这将会改变将来的版本。

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

    close & re-open R和Sys.which('g++')现在应该显示mingw-x64目录。

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

    Sys.which(g + +)“C:\ \ MINGW PROGRA ~ 1 - 1.0 ~ 1 \ X86_64 ~ - p \ mingw64 \ bin \ G__ ~ 1. exe”

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

    devtools:: install_github(“hadley/bigvis”)现在应该已经成功完成了。

#2


0  

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

这对我来说很有用,在Windows 7上使用的是R v 3.0.1。

Directly download the current package from GitHub:

直接从GitHub下载当前包:

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

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):

解压缩它,这样我们就不会留下任何机会(尽管您可以使用.zip本身):

unzip("bigvis.zip")

解压缩(“bigvis.zip”)

and install from source:

从源代码和安装:

install.packages("bigvis-master", repos = NULL, type = "source")`