[Rd] R echoes integer literals incorrectly, under certain conditions (PR#13204)

milbo at sonic.net milbo at sonic.net
Sat Oct 25 16:45:06 CEST 2008


Full_Name: Stephen Milborrow
Version: R 2.8.0
OS: Windows XP
Submission from: (NULL) (81.159.65.46)


Under certain conditions, R 2.8.0 incorrectly echoes integer literals without
the "L" suffix.  R 2.7.2 is ok.

To reproduce, create two files as follows:
a.R containing: source("b.R", echo=TRUE)
b.R containing: x <- 1L

Now execute: Rterm --vanilla --silent <a.R
This echoes:    x <- 1
It should echo: x <- 1L

This behaviour does not occur if you source("b.R") directly from the R command
prompt, or if you use R 2.7.2.

> sessionInfo()
R version 2.8.0 (2008-10-20) 
i386-pc-mingw32 

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base 

www.milbo.users.sonic.net



More information about the R-devel mailing list