Problem installing dplyr

5,136 views
Skip to first unread message

Barca Dad

unread,
Jan 20, 2014, 2:46:56 PM1/20/14
to manip...@googlegroups.com


Hello everyone,

I am having trouble installing dplyr - I included the console output below with the error message when trying to install the package.  Any ideas?

Thanks!


> devtools::install_github("dplyr")

Installing github repo(s) dplyr/master from hadley
Installing dplyr
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL '/private/var/folders/gp/f166jnrj6_l52dm6skm4phw00000gn/T/RtmpnKazif/dplyr-master'  \
  --library='/Library/Frameworks/R.framework/Versions/3.0/Resources/library' --with-keep.source 

* installing *source* package 'dplyr' ...
** libs
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/BH/include"   -fPIC  -mtune=core2 -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/BH/include"   -fPIC  -mtune=core2 -g -O2  -c dplyr.cpp -o dplyr.o
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/BH/include"   -fPIC  -mtune=core2 -g -O2  -c init.cpp -o init.o
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/BH/include"   -fPIC  -mtune=core2 -g -O2  -c window.cpp -o window.o
clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -L/usr/local/lib -o dplyr.so RcppExports.o dplyr.o init.o window.o /Library/Frameworks/R.framework/Versions/3.0/Resources/library/Rcpp/lib/libRcpp.a -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.0/Resources/library/dplyr/libs
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/dplyr/libs/dplyr.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/dplyr/libs/dplyr.so, 6): Symbol not found: __Z8demangleRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE
  Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/dplyr/libs/dplyr.so
  Expected in: flat namespace
 in /Library/Frameworks/R.framework/Versions/3.0/Resources/library/dplyr/libs/dplyr.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/dplyr'
Error: Command failed (1)

Hadley Wickham

unread,
Jan 20, 2014, 2:49:12 PM1/20/14
to Barca Dad, manipulatr
Any reason that you're not installing from CRAN?

(You can fix that error by reinstalling Rcpp from source)

Hadley
> --
> You received this message because you are subscribed to the Google Groups
> "manipulatr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to manipulatr+...@googlegroups.com.
> To post to this group, send email to manip...@googlegroups.com.
> Visit this group at http://groups.google.com/group/manipulatr.
> For more options, visit https://groups.google.com/groups/opt_out.



--
http://had.co.nz/

Barca Dad

unread,
Jan 20, 2014, 3:00:44 PM1/20/14
to manip...@googlegroups.com, Barca Dad
Thanks Hadley, I had tried CRAN, but got:

> install.packages("dplyr")

package ‘dplyr’ is available as a source package but not as a binary

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

so I reverted to the other option per your Readme.

Gabe Weymouth

unread,
Nov 4, 2014, 6:37:41 AM11/4/14
to manip...@googlegroups.com, paul...@gmail.com
I get the same error message when trying to install from CRAN

package ‘dplyr’ is not available (for R version 3.0.2)

I'm using Ubuntu 14.04, and got R straight from the software center. It has no problem installing ggplot2 or other packages.. 

Hadley Wickham

unread,
Nov 4, 2014, 7:54:51 AM11/4/14
to Gabe Weymouth, manipulatr, Barca Dad
You'll need to get a more recent version of R.
Hadley
> For more options, visit https://groups.google.com/d/optout.



--
http://had.co.nz/

Gabe Weymouth

unread,
Nov 5, 2014, 6:54:06 AM11/5/14
to manip...@googlegroups.com, drwey...@gmail.com, paul...@gmail.com
Yes. That worked. 

For anyone else who needs to get a newer version of R on Ubuntu, I followed the instructions here:


and they worked fine. After that, I was able to install dplyr with no issue.

Matt Jordan

unread,
Nov 20, 2014, 5:24:24 PM11/20/14
to manip...@googlegroups.com, drwey...@gmail.com, paul...@gmail.com
I downloaded the latest version of R on my Mac and received a similar error message.  I have double checked that I am running the current version of R.  Here is the error message.  Any thoughts?

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

Hadley Wickham

unread,
Nov 20, 2014, 5:25:49 PM11/20/14
to Matt Jordan, manipulatr, Gabe Weymouth, Barca Dad
Hi Matt,

2.13.0 is 3 years old! You want 3.1.2.

Hadley

Jaime Ashander

unread,
Nov 20, 2014, 5:35:56 PM11/20/14
to Hadley Wickham, Matt Jordan, manipulatr, Gabe Weymouth, Barca Dad
Or, if you do really have the "latest version of R" installed, but are getting that message, you're running an older version of R when you try to install. 

You should see something like this when you start R: 

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
  Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


Matt Jordan

unread,
Nov 20, 2014, 5:38:03 PM11/20/14
to Jaime Ashander, Hadley Wickham, manipulatr, Gabe Weymouth, Barca Dad
Hello

Thanks very much for the quick response.  I downloaded the latest version from the website an hour ago.  I ran the install and replaced my existing version with the new version.

When I check for updates it says I’m using the most recent version:

Here is the Version it says I’m running, which is clearly not the latest version despite me downloading and installing it today.

]

Any thoughts? Thanks for the help!!

Matt

Matt Jordan

unread,
Nov 20, 2014, 5:40:43 PM11/20/14
to Jaime Ashander, Hadley Wickham, manipulatr, Gabe Weymouth, Barca Dad
I’ve figured it out! Thanks for setting me in the right course.  I misunderstood that my updates were not installing the newest version of R.  I’m in the process of re-installing.  

Do you know if all my previously written code will work in the new version?

Thanks a lot,

Matt
On Nov 20, 2014, at 3:31 PM, Jaime Ashander <jash...@ucdavis.edu> wrote:

Jaime Ashander

unread,
Nov 20, 2014, 5:47:54 PM11/20/14
to Matt Jordan, manipulatr
Glad it's fixed


Do you know if all my previously written code will work in the new version?


No clue, but if you have a good suite of tests it would help you determine that. For some advice on testing check out http://journal.r-project.org/archive/2011-1/RJournal_2011-1_Wickham.pdf on package testthat (written by Hadley natch)

Aliakbar Akbaritabar

unread,
Jan 8, 2016, 5:09:31 AM1/8/16
to manipulatr, mjj...@gmail.com
is there any way to install dplyr on a amazon linux instance that uses micro free tier version (with 1 GB RAM); it gives me the compile error repeatedly, I need dplyr to install scholar package ...

{standard input}: Assembler messages:
{standard input}:126170: Warning: end of file not at end of a line; newline inserted
{standard input}:126842: Error: invalid operands (*UND* and .gcc_except_table sections) for `-'
{standard input}:126849: Error: invalid operands (.text._ZN5dplyr9ProcessorILi14ENS_3MaxILi14ELb0EEEE7processERKN4Rcpp13FullDataFrameE and .text._ZN5dplyr23DateSubsetVectorVisitorD2Ev sections) for `
-'
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [dplyr.o] Error 4
ERROR: compilation failed for package ‘dplyr’
* removing ‘/home/ali/R/x86_64-redhat-linux-gnu-library/3.2/dplyr’
Warning in install.packages :
 installation of package ‘/home/ali/dplyr_0.4.3.tar.gz’ had non-zero exit status


Any piece of advice will be highly appreciated :)
Reply all
Reply to author
Forward
0 new messages