similar to: working with environments to ensure code quality for long R scripts

Displaying 20 results from an estimated 2000 matches similar to: "working with environments to ensure code quality for long R scripts"

2012 May 24
3
set tkscale by tkentry
Hi, I am working under Windows and I am using R2.11 I want to use tkscale in my GUI. As the interval is quite big, I can't set the scale to a certain specific value. Therefore I want to add tkentry to allow the user to set tkscale to a certain value. Here is the code library(tcltk) tt<-tktoplevel() tkpack(m1<-tkscale(tt,from=306870.00, to=3026741, label="alpha",
2010 Oct 11
1
Lattice::bwplot unexpected behaviour when using vector of colors
Hi, I'm trying to produce colored boxplots using lattice::bwplot function. I need to plot each boxplot in the panel with a specific color. Naturally I used a vector of colors and expected to see colored boxplots. Although the boxplots were colored, the color of whiskers and the boxes do not match. Here is an example: d = data.frame(y = rnorm(100), x=1:4) box.color <-
2010 Oct 11
1
Lattice::bwplot unexpected behaviour when using vector of colors
Hi, I'm trying to produce colored boxplots using lattice::bwplot function. I need to plot each boxplot in the panel with a specific color. Naturally I used a vector of colors and expected to see colored boxplots. Although the boxplots were colored, the color of whiskers and the boxes do not match. Here is an example: d = data.frame(y = rnorm(100), x=1:4) box.color <-
2012 May 15
1
double buffering in windows() not working
I have doubled buffered animations that I show in class. They used to work but now flash. The default windows() option is buffered = TRUE. Just in case, I tried using windows( buffered = TRUE) but this made no difference. I am not sure when the change occurred. An older R2.11 version in one class room worked. R2.14.1, R2.14.2 and R2.15 don't work on my computer. Some of the animations
2010 Oct 09
1
Plot time range with rect or boxplot
Hi, I am trying to use rect (R2.11) to plot a set of data as following > data Company Pt Pri Pub 1 A WO520 8/5/09 2/11/10 2 B WO893 7/30/03 2/24/05 3 A WO258 12/8/08 6/17/10 4 C WO248 1/13/09 9/2/10 pri<-
2010 Jul 09
4
Mysterious behavior
I had trouble with some tests for the survival suite last night that I cannot explain. Framework: Ubuntu Linux, R2.11. For testing survival I have a separate directory and Makefile. I pull everything into the local .RData, no packages, library, or namespace. (It's easier to add test modifications to a routine in a chain of calls). A test of survreg + psline would fail because
2010 Nov 29
0
Updates for xlsReadWrite (1.5.3) and xlsReadWritePro (1.6.1/3)
The xlsReadWrite[Pro] packages allow to natively read/write Excel files (.xls) on the Win 32-bit platform. About a week ago new package versions have been released: * xlsReadWrite 1.5.3 is available at CRAN (for R2.11/2.12) and from www.swissr.org/download (binary builds for R2.9 - R2.12) * xlsReadWritePro 1.6.3 is available from www.swissr.org/download (binary builds for R2.9 - R2.12) * (the
2011 Sep 29
1
Tcl/Tk Guidelines
Hello, I wanted to ask if there are any guidelines for Tcl/Tk programming in R ? I know that there are no strict rules concerning programing. But perhabs there are some useful tipps how to organise Tcl/Tk code in your R script. I want to programm a little GUI and I don't want to reprogram the whole GUI in the middle, when I discover that I have forgotten a little detail for example. Thanks
2012 Feb 24
1
tcl tk command function with arguments ??
Hello, I am using R 2.11.1 under Windows XP. I would like to know if its possible to use a function with arguments as a command in tcl tk. For example require(tcltk) PressedOK <- function() { tkmessageBox(message="You pressed OK!") } tt <- tktoplevel() OK.but <- tkbutton(tt,text="OK",command=PressedOK) tkgrid(OK.but) tkfocus(tt) the function PressedOK has no
2010 Oct 08
0
Plot data on year/mon/day
Hi, I am trying to use rect (R2.11) to plot a set of data as following Company Pt Pri Pub A W200 4/5/2009 3/11/2010 B W293 2/30/2003 3/24/2005 A W258 2/8/2008 8/17/2010 C W248 5/13/2009 1/2/2010 %y <- seq(0,0.5*(length(company)-1),0.5) %h <- 0.1 %rect(pri, y-h, pub, y+h, col=c("light blue","pink","yellow","red")) I wonder if
2010 Jun 07
0
R-SIG-Fedora Digest, Vol 21, Issue 3
Ranjit, Thanks for the follow up, the open source community is incredible. Long story short, I was able to install through the repositories. Then cleaned up some other issues (tcl/tk, java and others) and did a custom install of 2.10. Which brings me to another question, when yum installed R2.11 as an update, did it use the settings from the original 2.10 repository installation or did it
2012 Apr 19
2
Print warning messages and save them automatically in a file
Hello, I am working under R2.11.0 Windows and I would like to ask you if you know a way to save all warning messages obtained by the R function "warning" in a file and keeping the functionalities of the base-function warning. For example if I use external code, I don't want to replace all lines containing "warning(...)" by a selfwritten function. I want to execute it
2010 Jul 17
2
cca in vegan (formula instead of community matrix data)
Dear List, I tried to do cca based on species data and environmental variables (formula instead of community data). However, there was an error saying row sums must be >0. I searched the previous related messages but found few solutions. Please kindly help and thank you in advance. code This is vegan 1.17-3 Warning message: package 'vegan' was built under R version 2.10.1
2011 Oct 25
0
Installing rgeos on Mac OS X 10.4 (was Re: "package 'stringr' does not have a name space"
I figured it out, at least enough to get rgeos's gSimplify function to work, which was my original goal; the stringr problem was with 0.2, however I got stringr 0.5 to install by changing the minimum version in DESCRIPTION from R2.11 to R 2.10. ... Thanks for the help! ############# # This is how I got rgeos to install in R GUI on my Intel Mac OS X 10.4: ############# # stringr
2004 Jan 21
1
HTB and VOIP- Choppy voice quality: What am I doing wrong? Desperate!
Hello all, ( I apologize if this posts twice ) Here is my situation. I have 3 buildings linked with 100mbit fiber optics (2 runs that come to the corporate office). I have 3 RH9 boxes, one at each location. Each box at the remote locations have 4 NICs, one for the fiber link, one for LAN, one for the VOIP box and one for the internet connection. The corporate office has 4 NICs also, 1
2019 Feb 14
2
Automaticaly unlock files
Hi all, I've been looking for an answer for this issue but Google didn't help. So I resource to the next best thing: the Samba mailing list. Question: Is there a way to automaticaly, after a certain amount of time, unlock a file after, for example, a client crash or network problem? I know how to do it manually of course, but that is, well, cumbersome. I've looked at
2007 Apr 07
2
command to ensure other command does last longer than 5 seconds
Hi, I am wondering if there exists a centos command that runs another command and ensures the second command doesnt take more than x seconds? When x is given on the command line. If the second command is not "done" the first command will just kill it and both exit. Does such a method or command exist? I just need to ensure the second command does just continue to run and run and
2006 Jul 18
0
how to ensure that a file has been selected on a file_field?
Does anyone know how to validate if a file has been selected using a file_field control? I want to ensure a file has been selected before the associated action is selected. Presumably something like validates_presence_of something ? Any pointers most appreciated... John -- Posted via http://www.ruby-forum.com/.
2006 Jul 21
2
File.open behavior for ActiveRecord, to ensure save after manipulation?
File.open in core Ruby is nifty, in that it automagically closes the file when you''re done using/manipulating it. I''m wondering whether there''s something like that for ActiveRecord? So you can do: AR.find(23).open {|ar| ar.foo = ''bar'' ... } And ar.save would be called when the block closes. -- -Alder
2006 Jan 11
2
validator to ensure two fields are different?
What validator can I use in a model to ensure that my :username field is different from my :password field? I''ve tried validates_exclusion_of :password, :in =>:username but I get a rails error "an object with the method include? is required must be supplied as the :in option of the configuration hash" Thanks! Gary