R 版的 bigvis 包是否不适用于 R 版本 3.0.1? [英] Is the bigvis package for R not available for R version 3.0.1?

查看:17
本文介绍了R 版的 bigvis 包是否不适用于 R 版本 3.0.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款专为处理大数据而设计的应用,但由于图点数量庞大,在以有用的方式绘制数据图表时遇到了问题.我最初的想法是创建一个小算法,根据数据的大小,将数据点分成大约 30 个子集,并取这些子集中所有点的平均值(顺便说一下,这个实现的错误是什么)?

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

然后我了解了 bigVis,它为你做了很多大数据表示,我真的很想试试这个库.

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.

我在安装它时遇到问题.我已经完成了:

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)

我也做过:

>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?

谢谢

推荐答案

假设您已经安装了 Rtools.exe,以下是安装 bigvis 的步骤,如果它仍然无法运行.您需要一个 64 位编译器才能运行 Rcpp 包,这是 bigvis

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. 在 R 中,确认未安装 g++(或不是 64 位)

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

Sys.which( "g++" )

下载 mingw-w64 - http://sourceforge.net/projects/mingw-w64/ (由于 sourceforge.net 上的 mingw-w64 项目正在转移到 mingw-w64.org,我建议使用 mingw-w64.org)

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 安装程序弹出时,请务必将 architecture 行从 i686 更改为 x86_64 然后让它安装

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

在windows start 菜单搜索栏中,输入environment,会弹出一个选项edit the system environment variables.点击它.

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

编辑你的 PATH 并添加一个分号加上你刚刚安装的 mingw-w64 程序的 bin 目录的文件夹名称.对我来说,它是 ;C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\bin 但这将在未来版本中改变

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

关闭&重新打开 R 和 Sys.which('g++') 现在应该指示 mingw-x64 目录

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"

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

  • devtools:::install_github("hadley/bigvis") 现在应该成功完成

    这篇关于R 版的 bigvis 包是否不适用于 R 版本 3.0.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆