Displaying 20 results from an estimated 7000 matches similar to: "as.numeric with tclvalue redux"
2008 Mar 24
1
Question about as.numeric with tclvalue
Dear R People:
I have an interactive menu via an Rcmdr extension package which asks
for lower and upper limit to evaluate.
Typically, I use:
assign("a",as.numeric(tclvalue(lowlim)),envir=.GlobalEnv)
and that's fine.
However, if I try to use pi or Inf or -Inf, I get either coerced NAs or NaN.
Does anyone have any suggestions, please?
Thanks,
Erin
PS Happy Easter if you
2012 Aug 29
1
Problem Installing a Package
I have just installed the latest version of R on a openSUSE 12.1 system
running on an ORacle VM VirtualBox and have encountered a problem with
installing ChemometricsWithR. Here is the output:
> library("compiler")
> install.packages("ChemometricsWithR")
Installing package(s) into ?/home/computation/R/x86_64-unknown-linux-gnu-
library/2.15?
(as ?lib? is unspecified)
2012 Aug 24
1
Error while installing gsubfn_0.6-4.tar.gz for R 2.15.1
Hi,
I am getting the follwoing error while installing gsubfn_0.6-4.tar.gz library for R. R version is 2.15.1 and i am installing on Redhat linux version 2.6.18-238.9.1.el5 (mockbuild at x86-002.build.bos.redhat.com<mailto:mockbuild at x86-002.build.bos.redhat.com>) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50))
* installing to library ?/home/mapred/installables/R/library?
* installing
2004 Jun 30
1
help with tclVar
Hi, I can' t load a variable tcltk declared with tclVar, why is this?, the
exmple above explain me ,Thanks Ruben
a<-tclVar(init="")
> f<-function(){
+ a<<-"pipo"
+ }
> f()
> a
[1] "pipo"
> tclvalue(a)
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class =
"tclObj") :
[tcl] can't
2012 Sep 24
1
eval and tcltk : target of assignment expands to non-language object
Hi everyone,
I have a problem to assign a value with tcl/tk
ths is the code ( it should be simple to understand) :
library(tcltk)
valA<-tclVar("0")
valB<-tclVar("0")
valC<-tclVar("0")
id<-"A"
out<-"1"
out2<-"2"
print(paste("tclvalue(val",id,")",sep="")) # ok
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]) # Works as expected
Now say I define
2006 Jul 29
1
fancier plotting
Hi
thank you for talking the time to help me with this.
I have a sequence of numbers in a file and an equal sequence of various character, say(a b c d) each occurs more than once. I need to plot the numbers so that numbers corresponding to a in the other sequence would have green dots, those corresponding to b a red dot, nothing on c and blue square for d. i.e
2 a show a green dot
4 b show a
2010 Apr 25
1
problem with Rcmdr Plugins
Dear R Development People:
I have written a couple of plugins for Rcmdr and they do not seem to work with R-2.11.0.
Here is the output:
> library(RcmdrPlugin.epack)
Loading required package: Rcmdr
Loading required package: tcltk
Loading Tcl/Tk interface ... done
Loading required package: car
--- Please select a CRAN mirror for use in this session ---
Rcmdr Version 1.5-4
Attaching package:
2009 Nov 21
1
MASS loading error
Dear R People:
I just installed R-2.10.0 on Karmic Koala Ubuntu, via the sudo apt-get
install r-base, etc.
However, when I try to install an Rcmdr Plugin package, I get the following:
> install.packages("RcmdrPlugin.qual",depen=TRUE)
Warning in install.packages("RcmdrPlugin.qual", depen = TRUE) :
argument 'lib' is missing: using
2003 Oct 22
1
Core dump when calling tclvalue (PR#4724)
Full_Name: Neil McKay
Version: 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
2008 Oct 27
1
ttkcombobox
Hi, all,
(sessionInfo at the end)
I've been struggling with the tcltk package and can't seem to get the
ttkcombobox to work. Here's an example:
library(tcltk)
p <- tktoplevel()
l <- tclVar()
## I don't know if I'm even calling it correctly
cb <- ttkcombobox(p, values = letters[1:4], textvariable = l)
tkpack(cb)
1. How do I know when the value of the combobox has
2010 Aug 05
1
Error in as.environment(pos): using 'as.environment(NULL)' is defunct
Hello,
I?m using R 2.11.1 with Tinn-R 1.17.2.4.
I hope the given informations are enough (it?s my first entry here)
The as.environment(pos) error appears in using the following code which
should open a function in an other R-file.
Here some extractions of the code:
....
HZ<-tclVar(seq(length=a,from=1,by=0)) #(a is defined by a
tkentry-element)
VZ<-tclVar(seq(length=a,from=1,by=0))
2008 Aug 11
3
tkentry that exits after RETURN?
I can set up an entry widget (thanks to an old
post by Barry Rowlingson) that gets a password and
exits when the user clicks on the "OK" button.
Anyone have any clever ideas for returning/
destroying the window when the user types a carriage
return/ENTER in the text window? I've messed around
a little with validate, validatecommand, but don't
see any obvious way to do it ...
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2006 May 22
1
rerender tcltk toplevel
Hi everybody,
I am trying to write a simple progress display based on a tcltk
toplevel. My first approach was to use the progressBar widget from the
BWidget library but since this is not available on every system (missing
on at least almost all windows systems, I guess...) I wanted to have a
backup there. So my second strategy was to use a simple toplevel with a
label and update the tclvariable
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',
2011 Dec 05
0
Problemas al cargar Rcmdr
Buenas a todos en la lista. Aunque los sigo de cerca nunca he
participado mas allá de algunas ocasión.
Ahora me surgió este problema. Hasta hace poco solo había usado distros
Debian-like o Arch pero hace unos días se me dio por probar Sabayon,
puesto que andaba en busca de algo rolling release y no quería Arch.
La cosa, para hacerla corta, es que instalé Sabayon con KDE.
Conseguí arreglar un
2010 Aug 11
0
R and TK Error "can't find objects"
Dear R People,
I?m trying to link R and TK. I?m using R 2.11.1 with Tinn-R 1.17.2.4.
For simple examples like the following one it?s working (see the
initiation of the variables, the handler and the 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))
2009 Aug 10
1
building a package
Dear R People:
I'm trying to build a package and am stuck on the last part; I keep
getting "there is no library".
Here are my statements:
erin at erin-laptop:~/Desktop/R-2.9.1/bin$ R CMD check RcmdrPlugin.qual
* checking for working pdflatex ... OK
* using log directory '/home/erin/Desktop/R-2.9.1/bin/RcmdrPlugin.qual.Rcheck'
* using R version 2.8.1 (2008-12-22)
* using