search for: tclobj

Displaying 20 results from an estimated 103 matches for "tclobj".

Did you mean: aclobj
2012 Jun 06
1
tcltk wish: Add tclObj.raw method for converting raw vectors to tclObj
Greetings, I have submitted a bug report / wish to the R Bug tracker (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14939), but I'd like to make this request here as well. Essentially, I was wondering if it would be possible to add another c routine to be called by as.TclObj for raw vectors. Right now, as.raw() is supported for objects of type "tclObj" (IIRC this change was made in 2.9 after someone requested it), however there is no corresponding C routine for converting raw vectors into tclObj. I suppose the best way to do this is to create a new C routi...
2012 Aug 29
1
Problem Installing a Package
...ntr.o gcc -std=gnu99 -shared -L/usr/local/lib64 -o TIMP.so ntr.o - L/usr/local/lib64/R/lib -lR installing to /home/computation/R/x86_64-unknown-linux-gnu- library/2.15/TIMP/libs ** R ** data ** inst ** preparing package for lazy loading Warning: S3 methods ?$.tclvar?, ?$<-.tclvar?, ?as.character.tclObj?, ?as.character.tclVar?, ?as.double.tclObj?, ?as.integer.tclObj?, ?as.logical.tclObj?, ?as.raw.tclObj?, ?print.tclObj?, ?[[.tclArray?, ?[[<-.tclArray?, ?$.tclArray?, ?$<-.tclArray?, ?names.tclArray?, ?names<-.tclArray?, ?length.tclArray?, ?length<-.tclArray?, ?tclObj.tclVar?, ?tclO...
2012 Aug 24
1
Error while installing gsubfn_0.6-4.tar.gz for R 2.15.1
...talling to library ?/home/mapred/installables/R/library? * installing *source* package ?gsubfn? ... ** package ?gsubfn? successfully unpacked and MD5 sums checked ** R ** demo ** inst ** byte-compile and prepare package for lazy loading Warning: S3 methods ?$.tclvar?, ?$<-.tclvar?, ?as.character.tclObj?, ?as.character.tclVar?, ?as.double.tclObj?, ?as.integer.tclObj?, ?as.logical.tclObj?, ?as.raw.tclObj?, ?print.tclObj?, ?[[.tclArray?, ?[[<-.tclArray?, ?$.tclArray?, ?$<-.tclArray?, ?names.tclArray?, ?names<-.tclArray?, ?length.tclArray?, ?length<-.tclArray?, ?tclObj.tclVar?, ?tclObj&lt...
2008 Jul 24
0
unable to load a library
hello all, i'm running R-2.6.1 on solaris 10 (x86). I added the package aplpack without problems, but when i try to use it, i got errors: > library(aplpack) Loading required package: tcltk Error in namespaceExport(ns, exports) : undefined exports :addTclPath, as.tclObj, is.tclObj, is.tkwin, tclfile.dir, tclfile.tail In addition: Warning message: S3 methods '$.tclvar', '$<-.tclvar', 'as.character.tclObj', 'as.character.tclVar', 'as.double.tclObj', 'as.integer.tclObj', 'as.logical.tclObj', 'print.tclObj...
2010 Aug 11
0
R and TK Error "can't find objects"
...he link to the function which multiply Zahl, Exponent and Factor) : require(tcltk) Ergebnis<-tclVar(c(0,0,0,0,0,0)) Zahl<-tclVar(c(0,0,1,1,1,0)) Exponent<-tclVar(c(1,1,1,1,1,1)) Factor<-tclVar(2) handler.Quadrieren<-function() { tkconfigure(e, textvariable=tclVar(test2(as.numeric(tclObj(Zahl)),as.numeric(tclObj(Exp onent)),as.numeric(tclvalue(Faktor))))) } test2 <- local({source("C:/.../Tk_einfach.R", local = TRUE) environment(Quadrieren) <- .GlobalEnv Quadrieren }) Now I want to do the same with my more difficult work: #Variable initiation...
2010 Aug 05
1
Error in as.environment(pos): using 'as.environment(NULL)' is defunct
...ment) VZ<-tclVar(seq(length=a,from=1,by=0)) Aktivit?t<-tclVar(seq(length=a,from=1,by=0)) VKG<-tclVar(3) Zugeh?rigkeit is a matrix. #The values can be changed by a tkentry-element. handler.Berechnung<-function() { tkconfigure(Ergebnisfenster, textvariable=tclVar(test2(as.numeric(tclObj(VKG)),as.numeric(tclObj(HZ)) ,as.numeric(tclObj(VZ)),as.numeric(tclObj(Aktivit?t)),as.numeric(tclObj( tclArray1))))) } test2 <- local({source("C:/Berechnung_Funktion.R", local = TRUE) environment(Berechnung) <- .GlobalEnv Berechnung }) and: Button<-tkframe(InputOutputfenster) t...
2011 Dec 05
0
Problemas al cargar Rcmdr
...error: library(Rcmdr) Loading required package: tcltk Error : .onLoad failed in loadNamespace() for 'tcltk', details: call: fun(libname, pkgname) error: Tcl/Tk support is not available on this system Además: Mensajes de aviso perdidos S3 methods ?$.tclvar?, ?$<-.tclvar?, ?as.character.tclObj?, ?as.character.tclVar?, ?as.double.tclObj?, ?as.integer.tclObj?, ?as.logical.tclObj?, ?as.raw.tclObj?, ?print.tclObj?, ?[[.tclArray?, ?[[<-.tclArray?, ?$.tclArray?, ?$<-.tclArray?, ?names.tclArray?, ?names<-.tclArray?, ?length.tclArray?, ?length<-.tclArray?, ?tclObj.tclVar?, ?tclO...
2010 Aug 12
2
accessing tcl variables within R and tcl
Dear R users, I have some troubles with dealing with tclObj objects. I try to explain it with a toy example: Say I define the following tcl procedure which just prints out each list element library(tcltk) .Tcl('proc test {myList} { foreach i $myList { puts stdout $i } }') and I call it with: > tcl('test',letters[1:5])...
2007 Oct 09
1
misbehaviour of some tk windows, R 2.6.0 on SUSE 10.1?
...t, repeatinterval=5, + .... [TRUNCATED] ****************************************************** The source for this demo can be found in the file: /home/david/lib/R/library/tcltk/demo/tkfaq.R ****************************************************** > Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name ".1.1". Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name ".1.2". Error...
2008 May 14
2
console from tcltk
Is it possible to use the console from within tcltk? > library(tcltk) > tcl("puts", "stdout", "Hello, World") Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] can not find channel named "stdout". > .Tcl('puts stdout "Hello, World"') Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj")...
2004 Nov 26
2
Tcl error - brace in argument?
Hi all, Does anyone know a solution for this error ? > tkwidget(dlg, "iwidgets::spinint", range="{0 23}") Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] wrong # args: should be ".31.1.19 configure -range {begin end}". Thanks, Matthew [[alternative HTML version deleted]]
2008 Oct 30
1
tklistbox selection
...I'm posting yet another question about tcltk since I'm still struggling with the package. I'm trying to create a tklistbox and a ttkcombobox on the same parent and am having a problem. Here's an example: library(tcltk) tt <- tktoplevel() tcl1 <- tclVar() tcl2 <- tclVar() tclObj(tcl1) <- letters[1:5] tclObj(tcl2) <- LETTERS[1] tb1 <- tklistbox(tt, listvariable = tcl1, selectmode = "multiple") tb2 <- ttkcombobox(tt, values = LETTERS[1:2], textvariable = tcl2) tkpack(tb1, tb2) First, I select some values in the lis...
2003 Oct 22
1
Core dump when calling tclvalue (PR#4724)
...: 1.8.0 OS: Linux (RedHat 7.1) Submission from: (NULL) (129.124.42.210) I get a core dump when executing the following code: > library("tcltk") > zzz<-tclArray() > tclvalue(zzz) Running under gdb gives this output: Program received signal SIGSEGV, Segmentation fault. makeRTclObject (tclobj=0x0) at tcltk.c:48 48 Tcl_IncrRefCount(tclobj);
2013 Jan 15
1
Can not load Rcmdr
I am getting the error message: > library(Rcmdr) Loading required package: car Loading required package: MASS Loading required package: nnet Error : .onAttach failed in attachNamespace() for 'Rcmdr', details: call: structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") error: [tcl] invalid command name "image". Error: package/namespace load failed for 'Rcmdr' If I try and load tcltk separately, it loads, but I get a warning. > library(tcltk) Loading Tcl/Tk interf...
2012 Mar 28
1
Problems with R Commander version 1.8-3
...or Windows XP I have no problem with R Commander version 1.7-2, but now I have a problem with R Commander (Rcmdr) version 1.8-3. After I lunch R Commander (sdi as well standard) if I try to import data (i. from Stata datafile) I have this Warning message: Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] list element in braces followed by "{"STATA"" instead of space. and the process stop. The problem is also for SPPS and Excel (in the last case the warning message is: Error in structure(.Ext...
2009 Feb 10
3
tcltk, tcltk2, Rcmdr, Mac OS X
Dear Colleagues, When I try to install Rcmdr the following happens: ---------------------------------- > library(Rcmdr) Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name "font". Error : .onAttach failed in 'attachNamespace' Error: package/namespace load failed for 'Rcmdr' ---------------------------------- I wondered if this is because...
2005 Aug 13
1
Broken tkrplot on Mac OS X
...OS 10.4.1 with R 2.1.1. Following a stanadard install from R here the error I get when I try to load tkrplot > library(tkrplot) Loading required package: tcltk Loading Tcl/Tk interface ... done Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : [tcl] no suitable image found. Did find: /Library/Frameworks/R.framework/Versions/2.1.1/Resources/library/tkrplot/li b s/tkrplot.so: not a dylib. Error in library(tkrplot) : .First.lib failed for 'tkrplot' Gustavo Corral suggestion was to rebuild the tkrplo...
2020 Jun 11
4
tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"
...ed. - Wayne R.W. Oldford math.uwaterloo.ca/~rwoldfor > library(tcltk) > fname <- "Rplot.png" > png(filename = fname, width = 500, height = 500) > hist(rnorm(20)) > dev.off() > tkimage.create("photo", file = fname) Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] encountered an unsupported criticial chunk type "eXIf". ______________________________ > R.version _ platform x86_64-apple-darwin17.0 arch x86_64 os darwin17.0 system x86_64, darwin17.0...
2005 Oct 24
1
tk problem with R 2.2.0 on wine/linux
...size <- tclVar(50.000000) dist <- tclVar(1.000000) kernel <- tclVar("gaussian") bw <- tclVar(1.000000) bw.sav <- 1.000000 replot <- function(...) { if (is.null(y)) re .... [TRUNCATED] Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] bad window path name ".1". > demo(tkttest) demo(tkttest) ---- ~~~~~~~ Type <Return> to start : > require(tcltk) || stop("tcltk support is absent") [1]...
2008 Sep 01
2
Error with Rcmdr package
...checked in CRAN packages, the tcltk package doesn't exist anymore, but tcltk2. Any help is appreciated Regards Nguyen D Nguyen Garvan Institute of Medical Research Sydney, Australia library(Rcmdr) Loading required package: tcltk Loading Tcl/Tk interface ...Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name "se". Error : .onLoad failed in 'loadNamespace' for 'tcltk' Error: package 'tcltk' could not be loaded