jolars / eulerr

Area-Proportional Euler and Venn Diagrams with Ellipses
https://jolars.github.io/eulerr/
GNU General Public License v3.0
129 stars 18 forks source link

basic use raises error and sometimes crashes R #90

Closed sam-hoffman closed 2 years ago

sam-hoffman commented 2 years ago

Running the code from the example in the README:

library(eulerr)
# From Wilkinson 2012
fit <- euler(c("A" = 4, "B" = 6, "C" = 3, "D" = 2, "E" = 7, "F" = 3,
               "A&B" = 2, "A&F" = 2, "B&C" = 2, "B&D" = 1,
               "B&F" = 2, "C&D" = 1, "D&E" = 1, "E&F" = 1,
               "A&B&F" = 1, "B&C&D" = 1),
             shape = "ellipse")

raises the error:

Error in bit_index_cpp(n) : 
  function 'Rcpp_precious_remove' not provided by package 'Rcpp'

and sometimes causes R to crash.

I have R version 4.0.2.

jolars commented 2 years ago

See if https://support.rstudio.com/hc/en-us/articles/4415936301335-Resolving-Rcpp-precious-remove-error solves your issue. This is not related to eulerr.