Displaying 20 results from an estimated 10000 matches similar to: "Syntax Highlightning and Editor for Linux"
2009 Dec 07
4
Announce: edtdbg, integrating R's debug() with your text editor
I've just developed edtdbg, a small package that integrates R's debug()
with one's text editor.
Excerpt from the README file:
Goal
The debug() function in R is primitive. My goal was to make it more
usable by integrating it with one's text editor. Hence I wrote the
package here, edtdbg. Its features include:
* As one steps from line to line of code
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
2023 Feb 18
1
Adding support for S7 to base R
One more comment:
The utils::setBreakpoint() function should be updated to be able to set
breakpoints in S7 methods, or a substitute function should be added to
the S7 package.
RStudio 2022.12.0+353 (not sure if that's the latest) also needs to be
taught how to do that, since it doesn't seem to use setBreakpoint.
Duncan Murdoch
2023 Feb 18
1
Adding support for S7 to base R
On 18/02/2023 9:51 a.m., Duncan Murdoch wrote:
> One more comment:
>
> The utils::setBreakpoint() function should be updated to be able to set
> breakpoints in S7 methods, or a substitute function should be added to
> the S7 package.
>
> RStudio 2022.12.0+353 (not sure if that's the latest) also needs to be
> taught how to do that, since it doesn't seem to use
2024 Apr 12
1
Debugging functions defined (locally) inside another functions
On 12/04/2024 8:15 a.m., Iago Gin? V?zquez wrote:
> Hi all, I am trying to debug an error of a function g defined and used inside another function f of a package.
> So I have
>
> f <- function(whatever){
> ...
> g <- function(whatever2){
> ...
> }
> ...
> }
>
> If I wanted to debug some thing directly inside f I would do debug(f).
2011 Aug 24
2
debugging functions in R
Hi,
I am not sure if this is the right list to ask this question (though I did
not find a more appropriate one).
I've started using R a month ago, and small scripts work fine. However, when
I start writing more complex code, it gets messy.
1. Is there any way to debug "normally", with breakpoints?
2. I am using the Eclipse plugin (StatET), and tried JGR(). Is there an IDE
that
2012 Feb 21
2
Debugging using RStudio or any other R editor
Hello,
I am using RStudio and have trouble finding out the problematic line in
the presence of a bug. Could I view the line NUMBER which contains a bug?
Is there any R editor able to do it?
Thanks,
Miao
[[alternative HTML version deleted]]
2011 Apr 06
1
executing from .R source file in the src package
Can I run R code straight from R src (.R) file instead of .rdb/.rdx? I of
course tried simply unzipping tar.gz in the R_LIBS directory but R complains
with "not a valid installed package".
Real issue: I am very new to R and all, so this could be something basic.
I'm trying to use ess-tracebug (Emacs front-end to trace/browser et al).
It works great when I trace functions in .R
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
2024 Apr 12
3
Debugging functions defined (locally) inside another functions
Hi all, I am trying to debug an error of a function g defined and used inside another function f of a package.
So I have
f <- function(whatever){
...
g <- function(whatever2){
...
}
...
}
If I wanted to debug some thing directly inside f I would do debug(f). But this does not go inside g code. On the other hand, debug(g) does not work as g is not a defined function in the
2011 Dec 06
2
help! what's wrong with setBreakpoint
Hi all,
I am in the middle of debugging which is stopped using "browser()"... in
myfile.R at around line #25.
I was then stuck in a big loop which I want to escape and stop the program
at the line after the big loop.
In the debugging mode, I used
Browse[2]> setBreakpoint("myfile.R#38")
I then typed "c" and "ENTER", thinking that it will continue
2003 Jan 20
1
R and gdb
Hi,
I have some problem with setting breakpoints with gdb in order to debug
some shared library for R.
Classical use of gdb work well
gcc -g -o footest.o footest.c
gdb footest.o
b 2
run
...
but as i tried to use it with R :
$ R -d gdb
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it
2008 Feb 02
9
best text editor for Linux?
Hi all,
I know this question has been asked in the past, but I am wondering if
anyone running R on Linux has any guidance as to a text editor that works
well with R. At the present time I am running R on Windows and using
TINN-R. For a number of reasons I want to switch to Linux, but can't find
much in the way of a text editor in sync with R. Any experiences,
recommendations would be
2023 Feb 17
2
Adding support for S7 to base R
Dear R-devel,
We are pleased to inform you that the R Consortium OOP Working Group
has been making progress on the S7 (formerly named R7) package and are
preparing to submit it to CRAN. The S7 package is a new OOP system
designed to be a successor to S3 and S4.
As part of that effort, the group has identified a minimal set of
narrow changes to base R that would allow S7 to exist as a CRAN
2010 Nov 17
3
Variable Editor
Hello everoyne,
If you have ever used matlab you should know the variable editor. You click over the value of a variable in the workspace and it opens like a excel sheet. Do you know if there is something like that in R . This will make easier for me to understand what values are stored in a matrix.
Also I am using rkward. Do you know if there is anyway to see the already defined variables?
I
2004 Feb 12
3
Debugging R Code
Hi all,
is there a more convenient way to debug R code than the built in debug()
function? (so that one can set breakpoints, step in and out of function
calls,...). I read the section on debugging compiled code in the manual
"Writing R Extensions" (I only want to debug ordinary code but thought that
maybe the advice there could help), but didn't find out how I can start
2010 Oct 29
2
how to debug (mtrace) a function defined inside a function?
Hi, everyone. I am using a fair amount of closures in my code. Problem i am
experiencing is i cannot figure out how to mtrace functions defined within a
function. There must be some way to name such function for mtrace to see it
and let me step into it. For example, say i have code
mymodel<-function(){
data<-numeric(0)
build<-function(){
data<<-1
}
m<-list()
2005 Apr 26
11
good editor for R sources ?
Dear all,
(Sorry if the question has already been answered.)
Could someone please suggest a good text editor for
writing R sources ?
(I know emacs exists ... but I find it a bit heavy).
I use crimson (http://www.crimsoneditor.com) which is
small and simple, but the R syntax seems not to be supported.
Thanks for any advice
2012 Nov 09
1
Breakpoints and non linear regression
Hello,
I have done some research about breakpoints (I am not a statistician) and I
found out about the breakpoint, strucchange and segmented packages in R
allowing to find breakpoints assuming linear model.
However, I would like to fit a periodic time series with a non linear
(periodic) model, and I was wondering how I could find breakpoints for this
model in R. Is it even possible ?
My model
2012 May 29
1
strucchange Fstats() example
Dear all,
I'm trying to understand how the strucchange package is working and I have been looking at the examples given for the Fstats() function.
The first example (Nile), shows one peak in the F-stats and one breakpoint is estimated, that can be plotted using the following code
## Nile data with one breakpoint: the annual flows drop in 1898
## because the first Ashwan dam was built