harrelfe / rms

Regression Modeling Strategies
https://hbiostat.org/R/rms
Other
176 stars 49 forks source link

Issue installing on R version 4.0.0 #126

Open sclewis23 opened 1 year ago

sclewis23 commented 1 year ago

It seems you are using the pipe operator but it is not included in R 4.0.0: ** R Error in parse(outFile) : /tmp/Rtmpedt7K3/R.INSTALL9ab026542f24/rms/R/latex.cph.s:56:49: unexpected '>' 55: knitr::kable(s, format='html', 56: align='r', row.names=FALSE) |> ^ ERROR: unable to collate and parse R files for package ‘rms’

setgree commented 1 year ago

ditto

─ Session info ───────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.0.5 (2021-03-31)
 os       macOS 13.0.1
 system   x86_64, darwin17.0
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       America/New_York
 date     2023-04-12
 rstudio  2022.12.0+353 Elsbeth Geranium (desktop)
 pandoc   3.1.1 @ /usr/local/bin/pandoc
bbolker commented 1 year ago

Also https://stackoverflow.com/questions/76141710/how-to-install-rms-and-any-package-without-problems-in-r#76141710 . According to the R NEWS file, the native pipe was added in R 4.1.0. The fix seems trivial (modify DESCRIPTION, for both this package and Hmisc) but I could submit a pull request if desired ...