search for: l258

Displaying 12 results from an estimated 12 matches for "l258".

Did you mean: 258
2016 Apr 19
3
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
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 "methods", as long as everything works properly with "methods" loaded but not attached. -Kirill On 19.04.2016 04:10, Michael Lawrence wrote: > Right, the methods package is not attached by default when running R > with Rsc...
2025 Jan 02
1
Possible issue in stats/arima.R package
...- xreg %*% coef[narma + (1L:ncxreg)], mod) else arimaSS(x, mod) It appears in both alternatives of the if statement. This one is strange though: the code in the github mirror (https://github.com/wch/r-source/blob/4a1ed749271c52e60a85e794e6f34b0831efb1ae/src/library/stats/R/arima.R#L256-L258) is different: mod <- makeARIMA(trarma[[1L]], trarma[[2L]], Delta, kappa, SSinit) if(ncxreg > 0) x <- x - xreg %*% coef[narma + (1L:ncxreg)] arimaSS(x, mod) yet the log shows no recent changes. I'm not sure what's going on. Duncan Murdoch
2016 Apr 19
2
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
..., 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 "methods", as long as everything works > > properly with "methods" loaded but not attached. > > > > > > -Kirill > > > > > > > > On 19.04.2016 04:10, Michael Law...
2025 Jan 02
1
Possible issue in stats/arima.R package
...xreg)], mod) > else arimaSS(x, mod) > > It appears in both alternatives of the if statement. > > This one is strange though: the code in the github mirror > (https://github.com/wch/r-source/blob/4a1ed749271c52e60a85e794e6f34b0831efb1ae/src/library/stats/R/arima.R#L256-L258) > is different: > > mod <- makeARIMA(trarma[[1L]], trarma[[2L]], Delta, kappa, SSinit) > if(ncxreg > 0) x <- x - xreg %*% coef[narma + (1L:ncxreg)] > arimaSS(x, mod) > > yet the log shows no recent changes. I'm not sure what's...
2016 Apr 19
4
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
....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 "methods", as long as everything > works > >> > properly with "methods" loaded but not attached. > >> > > >> > > >> > -Kirill > >>...
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
..., 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 "methods", as long as everything works > properly with "methods" loaded but not attached. > > > -Kirill > > > > On 19.04.2016 04:10, Michael Lawrence wrote: >> >> Right, the methods packag...
2025 Jan 02
1
Possible issue in stats/arima.R package
Hello all, I am running R version 4.4.2 (2024-10-31 ucrt) on Windows 10 x64, and noticed something that might be a minor bug (or at least inconsistent code) in the stats/arima.R package. I have found: 1. A missing stop() call at line 69: if (length(order) == 3) seasonal <- list(order = seasonal) else ("\'seasonal\' is of the wrong length") it should be rather: if
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...<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 "methods", as long as everything works >> > properly with "methods" loaded but not attached. >> > >> > >> > -Kirill >> > >> > >> > >> &gt...
2015 Aug 27
2
Re: [PATCH v2 02/17] v2v: factor out opening input VM
On Tue, Aug 11, 2015 at 08:00:21PM +0300, Roman Kagan wrote: > Opening the source VM and amending the properties in its internal > representation in accordance with command-line options fit nicely into > two isolated functions. Better to write this as: let rec main () = ... and open_source ... = ... and amend_source ... = ... and inspect_source ... = ... so
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...ote: >> >> > 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 "methods", as long as everything >> works >> >> > properly with "methods" loaded but not attached. >> >> > >> >> > >> &gt...
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
2025 Jan 02
2
Possible issue in stats/arima.R package
...(x, mod) >> >> It appears in both alternatives of the if statement. >> >> This one is strange though: the code in the github mirror >> (https://github.com/wch/r-source/blob/4a1ed749271c52e60a85e794e6f34b0831efb1ae/src/library/stats/R/arima.R#L256-L258) >> is different: >> >> mod <- makeARIMA(trarma[[1L]], trarma[[2L]], Delta, kappa, SSinit) >> if(ncxreg > 0) x <- x - xreg %*% coef[narma + (1L:ncxreg)] >> arimaSS(x, mod) >> >> yet the log shows no recent changes. I&...