Ricardo Villalba
2024-May-13 14:37 UTC
[R] Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.
Hello everyone When asking to create sequence longer than 2^48 (which is forbidden) the same error message appears translated and untranslated depending on whether R_XLEN_T_MAX is reached or exceeded while not an error o problem beyond that of the untranslated text, i find this weird. ?could it be fixed in any manner? R_XLEN_T_MAX <- 4503599627370496> length(1:(R_XLEN_T_MAX - 1))[1] 4.5036e+15> length(1:(R_XLEN_T_MAX + 0))Error: result would be too long a vector> length(1:(R_XLEN_T_MAX + 1))Error en 1:(R_XLEN_T_MAX + 1): el resultado seria un vector muy largo The last is the same as the second, but translated into spanish. I track the messages to be coded here: https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/altclasses.c#L580 and here https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/seq.c#L102 -- ?DV! [[alternative HTML version deleted]]
Ricardo Villalba
2024-May-13 14:39 UTC
[R] Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.
Typo: *2^48 should be 2^52 El lun, 13 may 2024 a las 11:37, Ricardo Villalba (<rikivillalba at gmail.com>) escribi?:> Hello everyone > When asking to create sequence longer than 2^48 (which is forbidden) the > same error message appears translated and untranslated depending on whether > R_XLEN_T_MAX is reached or exceeded > while not an error o problem beyond that of the untranslated text, i find > this weird. ?could it be fixed in any manner? > > R_XLEN_T_MAX <- 4503599627370496 > > > length(1:(R_XLEN_T_MAX - 1)) > [1] 4.5036e+15 > > length(1:(R_XLEN_T_MAX + 0)) > Error: result would be too long a vector > > length(1:(R_XLEN_T_MAX + 1)) > Error en 1:(R_XLEN_T_MAX + 1): el resultado seria un vector muy largo > > The last is the same as the second, but translated into spanish. > > I track the messages to be coded here: > https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/altclasses.c#L580 and > here > https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/seq.c#L102 > > -- > ?DV! >-- ?DV! [[alternative HTML version deleted]]
Ivan Krylov
2024-May-14 05:08 UTC
[R] Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.
Dear Ricardo Villalba, Thank you for spotting this corner case! ? Mon, 13 May 2024 11:37:57 -0300 Ricardo Villalba <rikivillalba at gmail.com> ?????:> I track the messages to be coded here: > https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/altclasses.c#L580 > and here > https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/seq.c#L102You may have noticed that one of these places lacks the underscore that R uses as the translation keyword: it's _(string) that looks up the translation of the string. Would you like to suggest a patch on R-devel at r-project.org or https://bugs.r-project.org ? -- Best regards, Ivan
Apparently Analagous Threads
- Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.
- Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.
- Altrep and translations (was " Description of error is untranslated when ....")
- Altrep and translations (was " Description of error is untranslated when ....")
- robustbase compilation problem: probably boneheaded? maybe 32-bit?