AndriSignorell / DescTools

Tools for Descriptive Statistics and Exploratory Data Analysis
http://andrisignorell.github.io/DescTools/
82 stars 18 forks source link

compiler error #129

Closed flybirdkh closed 7 months ago

flybirdkh commented 7 months ago

install.package(''DescTools') get error below image

kerchner commented 7 months ago

@flybirdkh - see #128 - this seems to be a problem with version 0.99.51, if your R version is < 4.3.0. I'm on R 4.2.3 and encountered this issue but was able to successfully install DescTools by installing 0.99.50 (for example, by doing this: devtools::install_version('DescTools', repos='https://cran.rstudio.com/', version='0.99.50'))

flybirdkh commented 7 months ago

It solved make the R default c++ compiler gnu++17

echo "CXX = g++ -std=gnu++17" >~.R/Makevars

AndriSignorell commented 7 months ago

Yes it i

@flybirdkh - see #128 - this seems to be a problem with version 0.99.51, if your R version is < 4.3.0. I'm on R 4.2.3 and encountered this issue but was able to successfully install DescTools by installing 0.99.50 (for example, by doing this: devtools::install_version('DescTools', repos='https://cran.rstudio.com/', version='0.99.50'))

Yes it, is. Please upgrade to R 4.3.0, it's time to move on. Thanks.