Summary
Hi, all, I met a problems when I install ggrepel packages on my mac, can anyone help me?
My instructions and output:
> install.packages("ggrepel")
There is a binary version available but the source version is later:
binary source needs_compilation
ggrepel 0.9.0 0.9.1 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘ggrepel’
trying URL 'https://cran.rstudio.com/src/contrib/ggrepel_0.9.1.tar.gz'
Content type 'application/x-gzip' length 271371 bytes (265 KB)
==================================================
downloaded 265 KB
* installing *source* package ‘ggrepel’ ...
** package ‘ggrepel’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I/usr/local/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include/Rcpp.h:57:
/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include/Rcpp/DataFrame.h:136:18: warning: unused variable 'data' [-Wunused-variable]
SEXP data = Parent::get__();
^
1 warning generated.
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I/usr/local/include -fPIC -Wall -g -O2 -c repel_boxes.cpp -o repel_boxes.o
In file included from repel_boxes.cpp:1:
In file included from /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include/Rcpp.h:57:
/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include/Rcpp/DataFrame.h:136:18: warning: unused variable 'data' [-Wunused-variable]
SEXP data = Parent::get__();
^
repel_boxes.cpp:718:39: error: expected expression
std::vector<Point> Points(n_points, {0, 0});
^
repel_boxes.cpp:719:45: error: expected expression
std::vector<Circle> DataCircles(n_points, {0, 0, 0});
^
repel_boxes.cpp:730:39: error: expected expression
std::vector<Box> TextBoxes(n_texts, {0, 0, 0, 0});
^
repel_boxes.cpp:731:50: error: expected expression
std::vector<Point> original_centroids(n_texts, {0, 0});
^
repel_boxes.cpp:759:42: error: expected expression
std::vector<Point> velocities(n_texts, {0, 0});
^
1 warning and 5 errors generated.
make: *** [repel_boxes.o] Error 1
ERROR: compilation failed for package ‘ggrepel’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/ggrepel’
Warning in install.packages :
installation of package ‘ggrepel’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/y5/1f6_5lyx5cjdjmng1mxb4z280000gn/T/RtmpfwirSp/downloaded_packages’
Version information
Here is the output from sessionInfo() in my R session:
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.3 tools_4.0.3
Summary
Hi, all, I met a problems when I install ggrepel packages on my mac, can anyone help me?
My instructions and output:
Version information
Here is the output from
sessionInfo()in my R session: