YuLab-SMU / scatterpie

:art: scatter pie plot
https://cran.r-project.org/package=scatterpie
60 stars 15 forks source link

Cannot install scatterpie package #34

Closed OceanBridges closed 1 year ago

OceanBridges commented 2 years ago

Hi,

I'm experiencing trouble installing this package. I tried both devtools::install_github("GuangchuangYu/scatterpie") install.packages("scatterpie")

and not of them works

I'm on R studio Version 1.2.5033

Thanks in advance

Mar

GuangchuangYu commented 2 years ago

any error?

RowanDurrant commented 1 year ago

Hi, I'm having the same issue with this error message:

Error in parse(outFile) : 

  [file path]/scatterpie/R/geom_scatterpie.R:72:17: unexpected '>'

71:       yvar <- get_aes_var(mapping, 'y0')

72:       df <- df |>

                    ^

ERROR: unable to collate and parse R files for package 'scatterpie'

I'm on R version 4.0.2 on a Windows machine, and this error happens both when installing from CRAN and github.

Thanks, Rowan

GuangchuangYu commented 1 year ago

@RowanDurrant the latest version only works with R > 4.1.0 as we used native pipe, the |> operator.

Mr-Byun commented 1 year ago

Try a lower version of scatterpie. install.packages('https://cran.r-project.org/src/contrib/Archive/scatterpie/scatterpie_0.1.7.tar.gz', repos=NULL, type='source')