csh01470 / catsnip

Treesnip-based Catboost Wrapper
GNU General Public License v3.0
1 stars 0 forks source link

R-4.4.0: Error in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) #5

Open icejean opened 4 months ago

icejean commented 4 months ago

Hi, Library catsnip will throw the following exception running on the newest R-4.4.0 while executing library(catsnip):

> Error in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) :
>    invalid non-character version specification 'x' (type: double)

It's caused by the strict rule of numeric version string checking as mentioned in the thread Question regarding .make_numeric_version with non-character input , and you can read the R base source of version.R, the current solution is to add an environment variable _R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_ in $R_HOME/etc/Renviron:

_R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_=false

Hope that it'll be fixed in the future R version or in catsnip. Regards Jean

csh01470 commented 3 months ago

Hello,

I've been quite busy lately and haven't been able to keep up with maintaining the catsnip package. I will work on it soon and keep you updated.

Thank you for always taking a interest. Have a great day!

regards. csh

csh01470 commented 1 month ago

Hello.

I'm sorry for the late reply. I recently examined this issue closely, and it seems I didn't explicitly specify the version as a double value.

Are you still experiencing that error recently?