Skip to content
Back to formatted view

Raw Message

Message-ID: <20081113013006.E82FF282EFF6@mail.pubhealth.ku.dk>
Date: 2008-11-13T01:30:06Z
From: ocheyett at bonddesk.com
Subject: R crashes on sprintf with bad format specification (PR#13283)

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.