search for: baug

Displaying 20 results from an estimated 45 matches for "baug".

Did you mean: aug
2016 Apr 19
3
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...error when the > methods namespace is not loaded. And the check should be changed to > directly check whether R_MethodsNamespace has been set to something > other than the default (R_GlobalEnv). Agreed? > > On Mon, Apr 18, 2016 at 4:35 PM, Kirill M?ller > <kirill.mueller at ivt.baug.ethz.ch> wrote: >> Scenario: An S3 method is declared for an S4 base class but called for an >> instance of a derived class. >> >> Steps to reproduce: >> >>> Rscript -e "test <- function(x) UseMethod('test', x); test.Matrix <- >>&gt...
2016 Apr 19
2
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...e loaded. ~G On Tue, Apr 19, 2016 at 5:34 AM, Michael Lawrence <lawrence.michael at gene.com > wrote: > Not sure why R_has_methods_attached() exists. Maybe Martin could shed > some light on that. > > On Mon, Apr 18, 2016 at 11:50 PM, Kirill M?ller > <kirill.mueller at ivt.baug.ethz.ch> wrote: > > Thanks for looking into it, your approach sounds good to me. See also > > R_has_methods_attached() > > ( > https://github.com/wch/r-source/blob/42ecf5f492a005f5398cbb4c9becd4aa5af9d05c/src/main/objects.c#L258-L265 > ). > > > > I'm fine...
2017 Jun 09
1
Usage of PROTECT_WITH_INDEX in R-exts
>>>>> Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> >>>>> on Thu, 8 Jun 2017 12:55:26 +0200 writes: > On 06.06.2017 22:14, Kirill M?ller wrote: >> >> >> On 06.06.2017 10:07, Martin Maechler wrote: >>>>>>>> Kirill M?ller <kirill.mueller at ivt.baug.e...
2008 Mar 11
1
R-console vs. bash console (execution halted)
...Help is greatly appreciated, Ciao, Chris _______________________________________________ Christophe Lienert ETH Zurich Institute of Cartography Wolfgang-Pauli-Str. 15 HIL G 13.3 CH-8093 Zurich SWITZERLAND Fon: +41-44-6333036 Fax: +41-44-6331153 www.karto.ethz.ch lienert at karto.baug.ethz.ch <mailto:lienert at karto.baug.ethz.ch>
2016 Apr 19
4
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...t; > <lawrence.michael at gene.com> wrote: > >> > >> Not sure why R_has_methods_attached() exists. Maybe Martin could shed > >> some light on that. > >> > >> On Mon, Apr 18, 2016 at 11:50 PM, Kirill M?ller > >> <kirill.mueller at ivt.baug.ethz.ch> wrote: > >> > Thanks for looking into it, your approach sounds good to me. See also > >> > R_has_methods_attached() > >> > > >> > ( > https://github.com/wch/r-source/blob/42ecf5f492a005f5398cbb4c9becd4aa5af9d05c/src/main/objects.c#L258-...
2017 Jun 06
2
Usage of PROTECT_WITH_INDEX in R-exts
On 06.06.2017 10:07, Martin Maechler wrote: >>>>>> Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> >>>>>> on Mon, 5 Jun 2017 17:30:20 +0200 writes: > > Hi I've noted a minor inconsistency in the documentation: > > Current R-exts reads > > > s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx); > >...
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
Not sure why R_has_methods_attached() exists. Maybe Martin could shed some light on that. On Mon, Apr 18, 2016 at 11:50 PM, Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> wrote: > Thanks for looking into it, your approach sounds good to me. See also > R_has_methods_attached() > (https://github.com/wch/r-source/blob/42ecf5f492a005f5398cbb4c9becd4aa5af9d05c/src/main/objects.c#L258-L265). > > I'm fine with Rscript not loading "method...
2017 Jun 05
2
Usage of PROTECT_WITH_INDEX in R-exts
Hi I've noted a minor inconsistency in the documentation: Current R-exts reads s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx); but I believe it has to be PROTECT_WITH_INDEX(s = eval(OS->R_fcall, OS->R_env), &ipx); because PROTECT_WITH_INDEX() returns void. Best regards Kirill
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...016 at 5:34 AM, Michael Lawrence > <lawrence.michael at gene.com> wrote: >> >> Not sure why R_has_methods_attached() exists. Maybe Martin could shed >> some light on that. >> >> On Mon, Apr 18, 2016 at 11:50 PM, Kirill M?ller >> <kirill.mueller at ivt.baug.ethz.ch> wrote: >> > Thanks for looking into it, your approach sounds good to me. See also >> > R_has_methods_attached() >> > >> > (https://github.com/wch/r-source/blob/42ecf5f492a005f5398cbb4c9becd4aa5af9d05c/src/main/objects.c#L258-L265). >> > >&...
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...hael at gene.com> wrote: >> >> >> >> Not sure why R_has_methods_attached() exists. Maybe Martin could shed >> >> some light on that. >> >> >> >> On Mon, Apr 18, 2016 at 11:50 PM, Kirill M?ller >> >> <kirill.mueller at ivt.baug.ethz.ch> wrote: >> >> > Thanks for looking into it, your approach sounds good to me. See also >> >> > R_has_methods_attached() >> >> > >> >> > ( >> https://github.com/wch/r-source/blob/42ecf5f492a005f5398cbb4c9becd4aa5af9d05c/src/...
2015 Feb 09
3
xtabs and NA
Hi I haven't found a way to produce a tabulation from factor data with NA values using xtabs. Please find a minimal example below, it's also on R-pubs [1]. Tested with R 3.1.2 and R-devel r67720. It doesn't seem to be documented explicitly that it's not supported. From reading the code [2] it looks like the relevant call to table() doesn't set the "useNA"
2016 Apr 18
3
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
Scenario: An S3 method is declared for an S4 base class but called for an instance of a derived class. Steps to reproduce: > Rscript -e "test <- function(x) UseMethod('test', x); test.Matrix <- function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())" Error in UseMethod("test", x) : no applicable method for 'test' applied to an
2015 Feb 09
0
xtabs and NA
On Mon, Feb 9, 2015 at 8:52 AM, Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> wrote: > Hi > > > I haven't found a way to produce a tabulation from factor data with NA > values using xtabs. Please find a minimal example below, it's also on R-pubs > [1]. Tested with R 3.1.2 and R-devel r67720. > > It doesn't seem to be documented...
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...s() should probably throw an error when the methods namespace is not loaded. And the check should be changed to directly check whether R_MethodsNamespace has been set to something other than the default (R_GlobalEnv). Agreed? On Mon, Apr 18, 2016 at 4:35 PM, Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> wrote: > Scenario: An S3 method is declared for an S4 base class but called for an > instance of a derived class. > > Steps to reproduce: > >> Rscript -e "test <- function(x) UseMethod('test', x); test.Matrix <- >> function(x) 'Hi';...
2017 Jun 06
0
Usage of PROTECT_WITH_INDEX in R-exts
>>>>> Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> >>>>> on Mon, 5 Jun 2017 17:30:20 +0200 writes: > Hi I've noted a minor inconsistency in the documentation: > Current R-exts reads > s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx); > but I believe it has to be...
2017 Jun 08
0
Usage of PROTECT_WITH_INDEX in R-exts
On 06.06.2017 22:14, Kirill M?ller wrote: > > > On 06.06.2017 10:07, Martin Maechler wrote: >>>>>>> Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> >>>>>>> on Mon, 5 Jun 2017 17:30:20 +0200 writes: >> > Hi I've noted a minor inconsistency in the documentation: >> > Current R-exts reads >> >> > s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &am...
2014 Mar 14
1
Detect a terminated pipe
Hi Is there a way to detect that the process that corresponds to a pipe has ended? On my system (Ubuntu 13.04), I see > p <- pipe("true", "w"); Sys.sleep(1); system("ps -elf | grep true | grep -v grep"); isOpen(p) [1] TRUE The "true" process has long ended (as the filtered ps system call emits no output), still R believes that the pipe p is
2014 Aug 13
1
Request to review a patch for rpart
Dear list For my work, it would be helpful if rpart worked seamlessly with an empty model: library(rpart); rpart(formula=y~0, data=data.frame(y=factor(1:10))) Currently, an unrelated error (originating from na.rpart) is thrown. At some point in the near future, I'd like to release a package to CRAN which uses rpart and relies on that functionality. I have prepared a patch (minor
2015 Feb 27
2
static pdf vignette
Dear all, In my package I have a computational expensive Rnw file which can't pass R CMD check. Therefore I set eval=FALSE in the Rnw file. But I would like to have the pdf vignette generated by the Rnw file with eval=TRUE. It seems to me a static pdf vignette is an option. Any suggestions on this? Thanks, Zhu Wang **Connecticut Children's Confidentiality Notice** This e-mail
2014 Feb 11
2
$new cannot be accessed when running from Rscript and methods package is not loaded
Hi Accesses the $new method for a class defined in a package fails if the methods package is not loaded. I have created a test package with the following single code file: newTest <- function() { cl <- get("someClass") cl$new } someClass <- setRefClass("someClass") (This is similar to code actually used in the testthat package.) If methods is not loaded,