Skip to content

Commit 2bd49a8

Browse files
author
ripley
committed
more on tclVersion
git-svn-id: https://svn.r-project.org/R/trunk@88282 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 28edbae commit 2bd49a8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/library/tcltk/man/TclInterface.Rd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,14 @@ system is active; if \code{FALSE}, only the Tcl interpreter is available.
265265
Note that a report of \sQuote{not found} will be given if the package is
266266
found but is not compatible with the Tcl/Tk version in use.
267267
268-
\code{tclVersion} returns the Tcl version as a character string such
268+
\code{tclVersion} returns the full Tcl version as a character string such
269269
as \code{"8.6.16"} or \code{"9.0.1"}). (This uses the Tcl command
270-
\code{info patchlevel} and so includes the patch level.)
270+
\code{info patchlevel} and so includes the patch level.) An
271+
alternative is use \preformatted{
272+
as.character(tcl('info', 'tclversion'))
273+
}
274+
which does not include the patchlevel. (This is also available as the
275+
Tcl variable \code{tcl_version}.)
271276
}
272277
\note{
273278
Strings containing unbalanced braces are currently not handled

0 commit comments

Comments
 (0)