[Rd] R crashes on sprintf with bad format specification (PR#13283)

ocheyett at bonddesk.com ocheyett at bonddesk.com
Thu Nov 13 02:30:06 CET 2008


Full_Name: Oren Cheyette
Version: 2.7.2
OS: Win XP
Submission from: (NULL) (64.161.123.194)


Enter the following at the R command prompt:
> sprintf("A %S %S %S XYZ", 1, 1, 1);

Note the erroneous capitalized %S instead of %s and the numeric inputs instead
of strings. With strings there's no crash - R reports bad format
specifications.



More information about the R-devel mailing list