From tho@jleeper @ending from gm@il@com  Tue May 15 11:28:46 2018
From: tho@jleeper @ending from gm@il@com (Thomas J. Leeper)
Date: Tue, 15 May 2018 10:28:46 +0100
Subject: [Rd] Mention L suffix in integer man page?
Message-ID: <CAOC91MSJiDS7UDRXOBk2CWVzP=uvX4x7HxW8XsLfPWTO_yiNYw@mail.gmail.com>

This is just a suggestion for a documentation improvement. I went to `?
integer` (src/library/base/man/integer.Rd) expecting to find an explanation
of the L suffix described in:
https://cran.r-project.org/doc/manuals/R-lang.html#Constants and `?
NumericConstants` but it's not mentioned anywhere. It might be useful to
have:

1. An example of explicit declaration of integers, like the one from `?
NumericConstants`:

## If you actually wanted integers, use an "L" suffix.
class(2L)
typeof(2L)

## These are equal but not identical
2 == 2L
identical(2, 2L)

2. A cross-reference to the `? NumericConstants` man page and/or a
cross-reference to the `? ':'` or `? seq` man pages, which describe how
particularities of how integer sequences can be (reliably) constructed.

Again, just a suggestion.

-Thomas

Thomas J. Leeper



[Rd] Mention L suffix in integer man page?
Thomas J. Leeper