similar to: debugging functions in R

Displaying 20 results from an estimated 11000 matches similar to: "debugging functions in R"

2011 Aug 30
1
R-Studio Question
Hello, I've switched to R studio from the StatET Eclipse plug-in. I have a question regarding navigating between plots. When I use x11() or windows() new devices are created and I know how to switch back and forth between them. However, when I plot on the device that stands for R-Studio's built-in plot browser, is there a way to switch back between plots? Each new "plot"
2011 Sep 05
1
capturing a figure to PDF or Image
Hello, I've been using jpeg(), bmp() and pdf() to capture plots. I've used the parameter "at" in a plot, to define the tickmarks. It works fine on screen, but when I try to print it to a file, it gives a warning: "at" is not a graphical parameter and prints an empty figure. Can you help? Thanks, Eran. [[alternative HTML version deleted]]
2011 Sep 12
5
completing missing samples
Hello, I have a time-series that has some missing samples. I was thinking on completing them using either zero-order hold or linear interpolation. I am looking for an efiicient way (other than a loop...) of identifiying the missing time slots and filling them. Can you think of any methods that might help here? (obviously which(diff(time)>min(diff(time))) will give the locations, but what
2008 Jul 30
2
Eclipse/Statet: How to set breakpoints
Hi, I'm using the IDE Eclipse with the Statet-Plugin to develop R-code. Is there a possibility to set breakpoints for debugging in R-script files (just like in Java-code)? Cheers, Eli
2011 Sep 01
1
Namespace in packages
Hello, I wonder how I might create a package that only reveals some of the function in the package to the user. I've tried creating an R package using the following: f <- function(x,y) x+y g <- function(x,y) x-y h <- function(x,y) f(x,y)*g(x,y) package.skeleton(list=c("f","g","h"), name="mypkg") and would like only h() to be available when I
2010 Sep 24
4
Object Browser
What's the best object browser? Dear all, I have tried all the popular R IDE or editors like Eclipse, Komodo, JGR, Revolution... They all have fancy fucntions like auto completion, syntax highlight.... BUT, I JUST WANT A OBJECT BROWSER! The easiest way to view objects in R console is fix(), but you have no global view of all the objects in the workspace. Revolution has the best object
2009 Jun 02
10
Most used R editors
Hi, I am a little lonely as R users in my group. So, I would like to know which editor is the most used in the R community. This post is some kind of survey. Personally, I use Emacs with ESS, It permits to : - open more than one R session - split the emacs editor as many part as you want. - use a lot of keybindings. ... I also tried Rkwards, Scilab (windows), JGR etc... but they are not
2009 Aug 27
19
Best R text editors?
Quick informal poll: what is everyone's favorite text editor for working with R? I'd like to hear from people who are using editors that have some level of direct R interface (e.g. Tinn-R, Komodo+SciViews). Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The
2012 Dec 02
1
Object Browser
Dear all, I have tried all the popular R IDE or editors like Eclipse, Komodo, JGR, Revolution... They all have fancy fucntions like auto completion, syntax highlight.... BUT, I JUST WANT A OBJECT BROWSER! The easiest way to view objects in R console is fix(), but you have no global view of all the objects in the workspace. Revolution has the best object browser so far, but this thing is way
2008 May 17
3
Question about graphical UI running R version 2.7.0 (2008-04-22) on Ubuntu Hardy Heron...
Hi All: Tried out a couple of different options suggested earlier, but for some reason I can only get Rcmdr to work properly. Not that that's a problem, but it might have been nice to have a couple of other choices. Just tried out JGR and ended up getting not found errors on several of the menu choices. Installed OK. Just several key menu options such as package manager don't work. Have
2008 May 17
3
Question about graphical UI running R version 2.7.0 (2008-04-22) on Ubuntu Hardy Heron...
Hi All: Tried out a couple of different options suggested earlier, but for some reason I can only get Rcmdr to work properly. Not that that's a problem, but it might have been nice to have a couple of other choices. Just tried out JGR and ended up getting not found errors on several of the menu choices. Installed OK. Just several key menu options such as package manager don't work. Have
2011 Aug 21
1
How to navigate (zoom, pan) in a plot/graph
Hello all, I need to zoom in and out and "travel"(pan) inside a plot, like you can do on a Matlab plot. If possible, I would also like the option to use the mouse to set a marker on the graph and get the (x,y) data for it, again, like in Matlab. Is this possible in R with the regular packages, or do you maybe know a different package that will allow this? Eran. * * [[alternative
2010 May 16
4
R GUI ???
Hello ! I am really happy to find this list. I am not new to R but to Debian or Linux in general. Up to now I used R on MS Windows but now I want to use R on Debian lenny. I have absolutely no experience with Debian. I was able to install R 2.11 on my system using the instruction in the readme on CRAN. I can open R in the shell. On windows I used R with the R GUI or with Tinn-R. Is there the
2011 Aug 24
1
Passing a large amount of parameters to a function
Hello, I have a function with a long list of parameters (of different types, numeric and string) myFunc <-function(p1, p2, p3, p4, p5...etc) { do.something(p1,p2,....) } I want to loop over this to provide a different set of parameters to the list every time. for (ii in 1:N) { myFunc(p1(ii), p2(ii),....etc) } I would like to simplify the notation and use some kind of structure, maybe
2014 Oct 02
3
debuggingState() analogous to tracingState() ?
We have had some conversation within R core, lead by Duncan Murdoch and me, about a proposal to extend the current tracingState() functionality by something tentatively called debuggingState(). Duncan has allowed me to copy the previous conversation (after very minor editing): The following is quite technical and assumes you know more about R's debug()ing and trace()ing than an estimated
2013 Jun 13
1
¿Alguna explicación para este fenómeno? (Relativo al uso de memoria)
Hola, ¿qué tal? Lo que quieres es un "debugger visual" (como el de muchos IDEs, incluyendo Netbeans y Eclipse) para R, como el de Revolution, http://www.youtube.com/watch?feature=player_embedded&v=7shLKEINM9A#! Pues sí, efectivamente, existe, pero solo con la versión de Revolutions de R. Y verás también que está basado en el "debugger" tradicional de R, que permite
2011 Jun 21
2
qplot/ggplot2 Questions
I took some data from an online poll about which R GUI people used most and I am messing around with it to learn how to use qplot. Specifically I am making a horizontal bar graph and I have two questions. 1. The categories are ordered in rather strange way at least to me. It is not alphabetical or ascending/descending order of votes cast so i had to manually state the order I wanted which is
2011 Oct 19
1
using a dictionary in R
Hi all, Is there a way to create a "dictionary" in R, such that it has <key,value> pairs? Something to the effect of: x=dictionary(c("Hi","Why","water") , c(1,5,4)) x["Why"]=5 In truth I'm looking two categorial variables function. So that if x=dictionary(c("a","b"),c(5,2)) x val 1 a 5 2 b 2 I want to compute
2012 Oct 09
4
Modern Symbolic debugger for R programmes?
I think I am whistling in the wind, but is there a modern symbolic debugger for R programmes? I am working through some one else's code, thousands of lines, that has the occasional bug in it, and a lot in my understanding of it. I cannot make setBreakpoint or findLineNum work. I get "No source refs found.". I am starting to loose my mind! A debugger where I could set
2009 Aug 04
2
100% CPU when running (cran2deb) JGR on Debian
Dear all, I installed the amd64 cran2deb [1] JGR binaries on a fresh Debian testing, and JGR is missbehaving. When JGR starts up, one core of the CPU goes to 100% and stays there, even though I am keeping it idle and not performing any operation. I tried JGR with both sun-java6-jdk and openjdk-6-jdk, debian-liv:/home/liviu# update-alternatives --config java There are 4 choices for the alternative