Displaying 20 results from an estimated 9000 matches similar to: "how do you know which functions are being debugged?"
2018 May 22
2
debugonce() functions are not considered as debugged
On Mon, May 21, 2018 at 5:01 PM Tomas Kalibera <tomas.kalibera at gmail.com>
wrote:
[...]
> Do you have a good use case when it would be useful to query/unset the
> mark for debugonce?
Well, I suppose the same use cases when it is useful to query/unset the
other debug
mark.
To be more specific, in debug helpers for a tool that works with callbacks
from a central event loop, it is
2018 Apr 28
3
debugonce() functions are not considered as debugged
debugonce() sets a different flag (RSTEP), and this is not queried by
isdebugged(), and it is also not unset by undebug().
Is this expected? If yes, is there a way to query and unset the RSTEP flag
from R code?
? f <- function() { }
? debugonce(f)
? isdebugged(f)
[1] FALSE
? undebug(f)
Warning message:
In undebug(f) : argument is not being debugged
? f()
debugging in: f()
debug at #1: {
}
2009 Sep 22
3
R PNG graph width limitation
Hi folks,
I am trying to do a clustering and generate a long dendrogram in R on Linux
server:
=========
data<-read.table(file="mean_ratio.txt.noheader",row.names=1,sep="\t",quote="\"")
hc<-hclust(dist(data),"ward")
png(file="mean_ratio.txt.noheader.ward.png",bg="white",pointsize=8,width=32767,height=1536)
plot(hc,hang=-1)
2010 Mar 12
3
rmaxwell in C
Hi R useRs:
How can I generate a random sample from Maxwell Distribution in C language?
Since I know the function rmaxwell {VGAM}, I tried the function r2c {r2c}.
But I still cannot find the source code.
Thanks for your kind help.
RegaRds,
2010-03-12
Randel
[[alternative HTML version deleted]]
2009 Nov 07
2
Rpad and R 2.10.0
I have problems with Rpad and R 2.10.0 (Windows XP and Windows 7,
browser is Firefox)
Just starting Rpad by
library(Rpad)
Rpad()
opens the browser and displays the
.html files and the .Rpad files in my home directory, but these
files do not have links and are not clickable.
Doing the same in R 2.9.2 gives clickable links in the browser.
Furthermore, in both cases an empty graphics window
2009 Nov 09
1
deparse() and the 'else' statement
Hi all,
It is recommended in ?'if' that we use 'else' right after '}' instead
of starting a new line, but I noticed deparse() will separate '}' and
'else' when the 'if...else' clause is used inside {...} (e.g. function
body). Here is an example:
## if/else inside {}
> cat(deparse(parse(text='function(){if (TRUE) {1} else {2}}')),
2010 Mar 11
1
parse an HTML page with verbose error message (using XML)
I'm using the function htmlParse() in the XML package, and I need a
little bit help on error handling while parsing an HTML page. So far I
can use either the default way:
# error = xmlErrorCumulator(), by default
library(XML)
doc = htmlParse("http://www.public.iastate.edu/~pdixon/stat500/")
# the error message is:
# htmlParseStartTag: invalid element name
or the tryCatch()
2018 May 23
0
debugonce() functions are not considered as debugged
On 05/22/2018 06:07 PM, G?bor Cs?rdi wrote:
> On Mon, May 21, 2018 at 5:01 PM Tomas Kalibera <tomas.kalibera at gmail.com>
> wrote:
> [...]
>> Do you have a good use case when it would be useful to query/unset the
>> mark for debugonce?
> Well, I suppose the same use cases when it is useful to query/unset the
> other debug
> mark.
I asked because the use cases
2009 Nov 03
2
about the cox result
Hi all:
I finished cox analysis like this:
fit_cox<-coxph(Surv(dat$Time, dat$death) ~ dat$CD4 + strata(dat$gender),data=dat);
> fit_cox
Call:
coxph(formula = Surv(data_ori$Time, data_ori$death) ~ data_ori$drug +
strata(data_ori$gender), data = data_ori)
coef exp(coef) se(coef) z p
data_ori$drugddI 0.216 1.24 0.146 1.47 0.14
Likelihood ratio test=2.17 on
2010 Apr 13
1
WinBUGS Question
Hi:
Is there a way we can set up WINBUGS to run 100 simulated datasets on the
same model and output results? Or do we have to call in each dataset at a
time and repeat the process 100 times manually?
Thanks
Anamika
[[alternative HTML version deleted]]
2009 Nov 17
1
Codoc mismatches
I have a function:
source_dir <- function(path, pattern = "\\.[rR]$", chdir = TRUE) ...
documented with
...
\usage{source_dir(path, pattern="\\.[rR]$", chdir=TRUE)}
...
But I get
Codoc mismatches from documentation object 'source_dir':
source_dir
Code: function(path, pattern = "\\.[rR]$", chdir = TRUE)
Docs: function(path, pattern =
2009 Sep 30
1
Is there a R function that can do similar things like 'pdist' in Matlab?
Hi,
I want to compute the pairwise correlation for about 10,000 genes. In
Matlab there is a function called 'pdsit' that can do this very
efficiently. I am wondering is there a similar function in R?
Thanks,
RT Ye.
2009 Nov 14
1
Silently loading an R package.
Hello.
I've been working an a binding between OCaml and R (i.e. calling R from
OCaml, mostly). See below for a taste of it.
I'm currently wondering how to load a given R package silently. I tried
require(xts, quietly = TRUE)
but I still get some ugly output. Is it possible to squeeze off this
output on stdout?
All the best,
Guillaume Yziquel.
> yziquel at seldon:~$
2010 Apr 09
2
Line breaks in mathematical formulae in Rd files
Hello,
I would like to implement the feature request described here:
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=13287. I think
this is a very worthwhile feature.
However, I need just a little push in the right direction. When I
added either a new command or change the old one to use eqnarray as
proposed, the "\\" newline characters were not properly passed to
latex - even
2010 Mar 15
1
XML: Slower parsing over time with htmlTreeParse()
Sorry, I listed the wrong package in the header of my previous post!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dear List,
has anyone of you experienced a significant increase in the time it takes to
parse an URL via "htmlTreeParse()" when this function is called
2011 Feb 17
1
which functions are being debugged?
Hi list,
Is there a function that can let me know which functions are being debugged? I
know I'm probably not doing a very good job of keeping track of things, but it
does get messier when you dig into different layers of a function. I know there
is "isdebugged", but it only works on one function at a time.
Thanks!
...Tao
[[alternative HTML version deleted]]
2010 May 05
1
help with restart
Dear all, I want to download webpage from a large number of webpage.
For example,
########
link <- c("http://gzbbs.soufun.com/board/2811006802/",
"http://gzbbs.soufun.com/board/2811328226/",
"http://gzbbs.soufun.com/board/2811720258/",
"http://gzbbs.soufun.com/board/2811495702/",
"http://gzbbs.soufun.com/board/2811176022/",
2009 Dec 24
3
An unprofessional message
Dear R helpers,
I understand that this is absolutely unprofessional on my part and this group doesn't entertain such things. I have been associted with this group since last 1 and half years and have been immensely benefited by the noble service rendred by many R helpers.
So I take this opportunity to thank all of you and wish you all
"MERRY CHRISTMAS".
I sincerely apologize
2018 May 21
0
debugonce() functions are not considered as debugged
debug(fun) marks "fun" for debugging, it makes sure that whenever "fun"
is called, the debugger is entered
undebug(fun) removes this mark; it won't stop any current debugging of
that function
isdebugged(fun) tells whether this mark is set or not; it does not tell
whether "fun" is currently running in a debugger/browser
debugonce(func) adds a different mark to
2009 Oct 06
2
Problem with na.omit when using length()
I'm seeing what looks to me like odd behaviour when I use na.omit on a
simple "length" function, as follows.
> sno
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30 31 32 33 34
> a
[1] 0 1 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
> b
[1] 1 1 0 1 1 1 0 0 NA 0 0 0 NA 0 1 NA 0 1 0 0