Skip to content

Commit fb6baa4

Browse files
author
ripley
committed
warn on new option names
git-svn-id: https://svn.r-project.org/R/trunk@88406 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent eb498f7 commit fb6baa4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/manual/R-exts.texi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5658,6 +5658,15 @@ More extreme examples are @samp{Africa/Conakry} (permanent UTC),
56585658
@samp{Asia/Calcutta} (no DST, permanent half-hour offset)
56595659
and @samp{Pacific/Kiritimati}(no DST, more than 12 hours ahead of UTC).
56605660

5661+
@item
5662+
It is possible for a package to add values to @code{options} but usually
5663+
inadvisable as the same option name might be used in current or future
5664+
versions of other packages or @R{} itself. It would be usually be
5665+
better to store package-specific options in an environment in the
5666+
package, but if the global options registry is to be used, choose option
5667+
names that are unambiguously linked to the package (and not just the
5668+
package name if that is an English word).
5669+
56615670
@end itemize
56625671

56635672

0 commit comments

Comments
 (0)