@@ -113,7 +113,7 @@ is.tclObj(x)
113113
114114addTclPath(path  =  " ." 
115115tclRequire(package , warn  =  TRUE )
116- tclVersion()
116+ tclVersion(with_parselevel   =   FALSE )
117117}
118118\arguments {
119119  \item {objv }{a  named  vector  of  Tcl  objects }
@@ -131,6 +131,7 @@ tclVersion()
131131  \item {warn }{logical.  Warn  if  not  found ?}
132132  \item {... }{Additional  arguments.  See  below. }
133133  \item {init }{initialization  value }
134+   \item {with_parselevel }{logical :  should  the  \sQuote {parse  level } be  included ?}
134135}
135136\details {
136137  Many  of  these  functions  are  not  intended  for  general  use  but  are  used 
@@ -265,15 +266,11 @@ system is active; if \code{FALSE}, only the Tcl interpreter is available.
265266  Note that a report of \s Quote{not found} will be given if the package is 
266267  found but is not compatible with the Tcl/Tk version in use. 
267268
268-   \c ode{tclVersion} returns the full Tcl version as a character string such 
269-   as \c ode{"8.6.16"} or \c ode{"9.0.1"}). (This uses the Tcl command 
270-   \c ode{info patchlevel} and so includes the patch level.)  An 
271-   alternative is to use \p reformatted{ 
272-       as.character(tcl('  info ' , ' tclversion ' ))
273- } 
274-   which does not include the patch level.  (This is also available as the 
275-   Tcl variable \c ode{tcl_version}.)  NB: the \s Quote{patch level} is not 
276-   necessarily numeric, e.g. \c ode{9.0b1}. 
269+   \c ode{tclVersion} optionally returns the full Tcl version as a 
270+   character string such as \c ode{"8.6.16"} or \c ode{"9.0.1"}). NB: the 
271+   \s Quote{patch level} is not necessarily numeric, e.g. \c ode{9.0b1}. 
272+   (\R {} versions before 8.6.0 reported the full version including the 
273+   \s Quote{patch level}.) 
277274} 
278275\n ote{
279276  Strings containing unbalanced braces are currently not handled 
@@ -289,6 +286,7 @@ system is active; if \code{FALSE}, only the Tcl interpreter is available.
289286} 
290287\e xamples{
291288tclVersion() 
289+ tclVersion(TRUE) 
292290
293291.Tcl("format \"\% s\\ n\"  \" Hello, World!\" ") 
294292\d ontdiff{
@@ -306,7 +304,7 @@ tcl("set", as.character(xyzzy))
306304\d ontrun{
307305## These cannot be run by example() but should be OK when pasted 
308306## into an interactive R session with the tcltk package loaded 
309- top <- tktoplevel() # a Tk widget, see Tk-widgets  
307+ top <- tktoplevel() # a Tk widget, see ?Tkwidgets  
310308ls(envir = top$env, all.names = TRUE) 
311309} 
312310\d ontdiff{
0 commit comments