-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sprintf triggers FormatFlagsConversionMismatchException #191
Comments
The bug seems to a discrepancy of the meaning of the '#' symbol in Java and C, relevant parts in bold. Java
Source: https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html C
|
Hi @rmartinsanta, thank you for the precise description. We will look into this issue. Unfortunately, these kinds of incompatibilities with standard R (GNU-R) are inevitable. In this case, it is just the difference between the standard formatter in Java and in C, but in some cases, GNU-R has corner cases that does not comply to any standard, e.g., GNU-R has its own regular expression engine that handles some cases in a way different from all other standard engines (see this PR r-lib/testthat#1377) |
While debugging a possible bug in one R library, found a potential issue in the sprintf function. The formatter seems to not be a valid in Java, while being valid in R.
Minimum code to reproduce that works on standard R:
Result in GraalVM:
Result in R:
Include the folloing info
fastr_errors_pid{xyz}.log
orfastr_errors.log
, attach them to the issue.$GRAALVM_HOME/bin/R --vm.version
and include the full output:sessionInfo()
: Provided in the command outputThe text was updated successfully, but these errors were encountered: