topepo / caret

caret (Classification And Regression Training) R package that contains misc functions for training and plotting classification and regression models
http://topepo.github.io/caret/index.html
1.61k stars 634 forks source link

CRAN required changes for legacy S typedef Sint #1301

Closed topepo closed 2 years ago

topepo commented 2 years ago

CRAN packages using legacy S typedefs Sfloat and Sint

On Sun, May 29, 2022 at 11:07 AM Prof Brian Ripley ripley@stats.ox.ac.uk wrote: That is

Users of Sfloat: LS2W wavethresh

Users of Sint:

EmbedSOM KODAMA LS2W QTLRel RPostgreSQL bdsmatrix caret cclust chron clue cobs coxme dgof distcomp ebmstate gam lasso2 locfit relsurv splusTimeDate splusTimeSeries surveillance survival wavethresh

These have been undocumented for years, and are now deprecated (as they pollute the namespace), so please remove at your next update. It may be convenient to copy these into your package:

typedef double Sfloat; typedef int Sint;

It is planned that this will be checked on CRAN incoming soon and become an error in R 4.3.0 next Spring.

You can check this in current R-devel by defining NO_S_TYPEDEFS before including <R.h>.