Re: [Rd] head.ts, tail.ts loses time

2024-06-13 Thread Georgi Boshnakov
introduce artificial NA's: > as.zoo(lynx)[ c(1:3, 7) ] 1821 1822 1823 1827 269 321 585 3928 > coredata(as.zoo(lynx)[ c(1:3, 7) ]) [1] 269 321 585 3928 On the other hand, 'ts' methods for 'head' and 'tail' would be suitable, since the indexing

[Rd] bug in na.contiguous? Doesn't give the first tied stretch if it is at the start

2023-06-01 Thread Georgi Boshnakov
drop the first element of 'keep' to allow correct indexing later. Georgi Boshnakov > stats:::na.contiguous.default function (object, ...) { tm <- time(object) xfreq <- frequency(object) if (is.matrix(object)) good <- apply(!is.na(object), 1L, all) else go

[Rd] . Re: stage=install in \doi definition could lead to problems

2022-03-25 Thread Georgi Boshnakov
easonable not to apply this check to packages submitted to CRAN until this is made stable? Georgi Boshnakov -- Message: 4 Date: Wed, 16 Mar 2022 01:07:54 +0100 From: Sebastian Meyer To: Ivan Krylov Cc: Subject: Re: [Rd] stage=install in \doi defini

Re: [Rd] Bug 18208 - tools:::latexToUtf8(tools::parseLatex("\\'i")) should generate í

2021-10-09 Thread Georgi Boshnakov
- 0     table$"\\'"$"i"  <- table$"\\'"$"\\i"    # Georgi     table } I can submit a patch if I get access  to bugzilla. After building R-devel svn 81022 from 2021-10-08 with the above change, we get what we want: > tools:::latexToUtf8(t

[Rd] Bug 18208 - tools:::latexToUtf8(tools::parseLatex("\\'i")) should generate í

2021-10-09 Thread Georgi Boshnakov
\\i"# Georgi table } I can submit a patch if I get access to bugzilla. After building R-devel svn 81022 from 2021-10-08 with the above change, we get what we want: > tools:::latexToUtf8(tools::parseLatex("\\'i")) í > tools:::latexToUtf8(tools::parseLatex(&quo

Re: [Rd] vignettes present in 2 folders or won't work

2020-11-02 Thread Georgi Boshnakov
is that it wipes out inst/doc (but it does ask for confirmation). Georgi Boshnakov -- Message: 12 Date: Mon, 2 Nov 2020 05:22:02 -0500 From: Duncan Murdoch To: Mark van der Loo Cc: Dirk Eddelbuettel , r-devel Subject: Re: [Rd] vignettes present in 2 f

Re: [Rd] more Matrix weirdness

2020-09-11 Thread Georgi Boshnakov
ill be invoked. There may be cases when changing the class of the left-hand side make sense (such as one subclass of "Matrix" to another) but certainly not for the base R vector classes. Georgi Boshnakov -Original Message- From: Abby Spurdle Sent: 11 September 2

Re: [Rd] more Matrix weirdness

2020-09-11 Thread Georgi Boshnakov
define suitable method for coreData(). So, a matrix class would return a plain matrix, a vector class - a vector, etc. This is akin to coredata() for time series in package 'zoo' and others. Georgi Boshnakov -Original Message- From: Martin Maechler Sent: 10 September 2020 13:4

Re: [Rd] more Matrix weirdness

2020-09-09 Thread Georgi Boshnakov
I think that this is because `[<-` dispatches on S4 methods only if the first argument is S4. ?"[<-" says: "These operators are also implicit S4 generics, but as primitives, S4 methods will be dispatched only on S4 objects ‘x’." Georgi Boshnakov -Original

[Rd] changed names from lm() in R-devel

2020-02-13 Thread Georgi Boshnakov
eason", where "Season" is a factor produces names like "TimeIndex:Season1", while R-devel changes the order of the names to "Season1:TimeIndex", etc. Is this change on purpose? Georgi Boshnakov --- ex_fac<- as.factor(rep(1:4, 10)) ex_fo <- a

Re: [Rd] install_github and survival

2019-09-06 Thread Georgi Boshnakov
I cloned therneau/survival and the installation failed since there is no definition for exported function survfit(). A file seems to be missing - there is survfit0() and survfit0.R but, compared to CRAN, no survfit.R. Georgi Boshnakov

Re: [Rd] Documenting else's greed

2019-08-18 Thread Georgi Boshnakov
+ 1, for the same reasons, although one might expect an error. > f <- function(x){x^2} + 1 > f(2) [1] 5 > as.character(body(f)) [1] "+" "{\nx^2\n}" "1" > Georgi Boshnakov -- Messa

Re: [Rd] methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true

2019-07-01 Thread Georgi Boshnakov
legally, I believe) present in the function object. The call .local(object, target) would be appropriate if "subset" was missing also from the signature of the function object (the latter would be illegal here). Alternatively, it could be named, as in .local(object, target = target

Re: [Rd] tools::package_native_routine_registration_skeleton?

2019-06-28 Thread Georgi Boshnakov
the symbols that are meant for export. Georgi Boshnakov -- Message: 6 Date: Fri, 28 Jun 2019 09:06:52 + From: "Koenker, Roger W" To: "r-devel@r-project.org" Subject: [Rd] tools::package_native_routine_registration_skeleton? Message-ID: <

[Rd] R CMD check does not report redundant '...' argument described in Rd File

2019-04-16 Thread Georgi Boshnakov
o the 'dots' argument. Checked under Windows on win-builder on 17 April 2018 with R version 3.6.0 beta (2019-04-16 r76403), R version 3.5.3 (2019-03-11) and R version 3.4.4 (2018-03-15). A minimal package illustrating this is at https://github.com/GeoBosh/reprexes/tree/master/re

[Rd] incomplete description of return value of stats::uniroot()?

2018-12-03 Thread Georgi Boshnakov
oot.Rd, before the sentence quoted above: \code{iter} includes the number of iterations, if any, done initially to ensure opposite signs at the ends of the interval. This number is available separately in component \code{init.it}. If no extension of the inter

[Rd] disappearing paragraphs in html rendering of text from Rd macros

2018-10-29 Thread Georgi Boshnakov
this email, while in R-3.5.1 the empty lines cause paragraph tags around each chunk: a b c d Directly embedding the Sexpr in the Rd file also produces all tags in R-devel and R-3.5.1patched., --- Georgi Boshnakov __ R-devel@r-project.org mailing

Re: [Rd] incomplete results from as.character.srcref() in some cases involving quote()

2018-06-20 Thread Georgi Boshnakov
documentation - the code stops at the last byte/character of the expression, that is, on the closing brace - which is the "already parsed text". I think this works as documented (also source() uses the current implementation of wholeSrcref). Best Tomas On 06/18/2018 04:20 PM, Georgi Boshnakov w

[Rd] incomplete results from as.character.srcref() in some cases involving quote()

2018-06-18 Thread Georgi Boshnakov
uote({quote({2+2})}" > attributes(e5) ... $wholeSrcref e5 <- quote({quote({2+2})} Attribute 'wholeSrcref' seems undocumented but it is of class 'srcref' which is documented (eg ?srcref) and has supporting methods. Georgi Boshnakov [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Rd parser throws error for user macros invoked with empty argument

2018-05-25 Thread Georgi Boshnakov
:parse_Rd(f) > rd mac6: 2*3 --- Georgi Boshnakov -Original Message- From: Tomas Kalibera [mailto:tomas.kalib...@gmail.com] Sent: 25 May 2018 10:05 To: Georgi Boshnakov; r-devel@r-project.org Subject: Re: [Rd] Rd parser throws error for user macros invoked with empty argument Thanks

Re: [Rd] Rd parser throws error for user macros invoked with empty argument

2018-05-25 Thread Georgi Boshnakov
Thanks for looking into this, empty string is the natural solution indeed. Georgi -Original Message- From: Tomas Kalibera [mailto:tomas.kalib...@gmail.com] Sent: 25 May 2018 10:05 To: Georgi Boshnakov; r-devel@r-project.org Subject: Re: [Rd] Rd parser throws error for user macros

[Rd] Rd parser throws error for user macros invoked with empty argument

2018-05-14 Thread Georgi Boshnakov
elow with the system macro \CRANpkg{}. In this example it doesn't make sense to use empty argument but the error is not specific to this particular macro. -- Georgi Boshnakov Create an Rd file containing system macro \CRANpkg{bibtex}, parse_Rd() is ok: = fn <- t

[Rd] BUG: 'bibentry' methods change default bibstyle

2018-05-13 Thread Georgi Boshnakov
ame happens with format() and print() but this seems due to their use of sort(). Excerpts from bibentry methods: == > utils:::sort.bibentry function (x, decreasing = FALSE, .bibstyle = NULL, drop = FALSE, ...) { x[order(tools::bibstyle(.bibstyle)$sortKe

[Rd] punctuation in utils::cite()

2018-03-14 Thread Georgi Boshnakov
bib = bibs, after = ", section 2", textual = TRUE) [1] "Murdoch (2009 , section 2)" > cite("murdoch:2009", bib = bibs, after = ", section 2") [1] "(Murdoch 2009 , section 2)" Georgi Boshnakov [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Problem with R_registerRoutines

2018-02-27 Thread Georgi Boshnakov
But using devtools from a different session still gives it. Georgi Boshnakov -- Message: 5 Date: Tue, 27 Feb 2018 07:21:18 + From: To: Cc: , Subject: Re: [Rd] Problem with R_registerRoutines Message-ID: <548d52560d5bde45aec4ef876bf2a194012d

Re: [Rd] R-devel Digest, Vol 180, Issue 24

2018-02-27 Thread Georgi Boshnakov
ssion still gives it. Georgi Boshnakov -- Message: 5 Date: Tue, 27 Feb 2018 07:21:18 + From: To: Cc: , Subject: Re: [Rd] Problem with R_registerRoutines Message-ID: <548d52560d5bde45aec4ef876bf2a194012d3...@s-dc-estb01-j.net1.cec.eu.int> Content

Re: [Rd] Best practices in developing package: From a single file

2018-02-01 Thread Georgi Boshnakov
usage" statements in Rd files was mentioned several times. Rdpack::reprompt() does this and more for functions, methods and classes. Georgi Boshnakov -- Date: Wed, 31 Jan 2018 07:53:18 -0800 From: Michael Lawrence To: Duncan Murdoch Cc: "Brian G. Peterson&qu

Re: [Rd] . Possible issue with R-tools on Windows

2017-03-12 Thread Georgi Boshnakov
regards, Georgi Boshnakov -Original Message- Date: Sat, 11 Mar 2017 11:17:15 -0600 From: Robert Baer To: "'r-devel@r-project.org'" Subject: [Rd] Possible issue with R-tools on Windows Message-ID: Content-Type: text/plain; charset=utf-8; format=flowed This is a

[Rd] problems with RdMacros in file DESCRIPTION

2017-03-09 Thread Georgi Boshnakov
rgufy#frequently-asked-questions but with no indication if it has been reported. Thanks, Georgi -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 Alan Turing Building 1.125 The University of Manchester emai

Re: [Rd] R-devel Digest, Vol 167, Issue 25

2017-01-29 Thread Georgi Boshnakov
rix' and when things work think about cleaning up and importing only stuff that you need. Best regards, Georgi Boshnakov -- Message: 15 Date: Fri, 27 Jan 2017 22:41:10 + From: Robert McGehee To: "r-devel@r-project.org" Subject: [Rd] Matrix packa

Re: [Rd] : strptime bug

2017-01-26 Thread Georgi Boshnakov
bably happens at 2am. Georgi Boshnakov -- Message: 7 Date: Thu, 26 Jan 2017 11:02:06 +0100 From: rob vech To: r-devel@r-project.org Subject: [Rd] strptime bug Message-ID: <70325e6b-6d54-8172-3915-bbfc8d5cd...@gmail.com> Content-Type: text/plain; charset=&q

[Rd] add .emacs.desktop and .emacs.desktop.lock to files ignored by R CMD build?

2015-07-15 Thread Georgi Boshnakov
Is it possible to consider adding .emacs.desktop and .emacs.desktop.lock to files ignored by R CMD build? Thanks, Georgi -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 Alan Turing Building 1.125 The University of

[Rd] problem with setGroupGeneric from package methods

2014-11-25 Thread Georgi Boshnakov
pace ======== Further details are after the signature below. Georgi -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 Alan Turing Building 1.125 The University of M

[Rd] ambiguity in the documented return value of Null() from package MASS

2014-11-10 Thread Georgi Boshnakov
Hi, Function Null from package MASS seems to return a matrix with zero columns and the expected number of rows when the null space of the argument contains only the zero vector, e.g. > library(MASS) > diag(nrow=3) [,1] [,2] [,3] [1,]100 [2,]010 [3,]001

Re: [Rd] Historical NA question (Herv? Pag?s)

2014-05-07 Thread Georgi Boshnakov
xxx% notation predates Mathematica's generic infix, ~XXX~, notation, which also has high priority, independent of the meaning of the symbol XXX. -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 Alan Turing

Re: [Rd] R-devel Digest, Vol 117, Issue 13

2012-11-15 Thread Georgi Boshnakov
not defined as a vector class, object 'a' is a scalar (vector of length 1 in R) and therefore recycled. It is probably not a good idea to redefine length() for class A without making it a subclass of 'vector' (or something equivalent) since doing so redefines a fundamental basi

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Georgi Boshnakov
eems to be to typeset text containing special characters in normal text mode and thus its purpose is different from \verb and ``verbatm' macros/environments in LaTeX. Georgi -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Georgi Boshnakov
ext, stage=render]{"line\nnext line\n"} 3: \Sexpr[results=text, stage=render]{list("line\n\nnext line newline and another", 3)} } -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fa

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-01 Thread Georgi Boshnakov
, not `cat'. The latter sends its output somewhere and returns NULL, not the string. Best, Georgi -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 Alan Turing Building 1.125 The University of Manchester email

Re: [Rd] Access R Help Content From R

2011-01-13 Thread Georgi Boshnakov
new help system, though. (I am using a modified version of fgui locally but was not able to contact the author). Georgi -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 Alan Turing Building 1.125 The University of

[Rd] overfilled signature lines in documentation shell for methods

2011-01-10 Thread Georgi Boshnakov
ment empty and put everything in the second, e.g. \item{}{signature(x = "numeric",y = character, ): this method ...}. Georgi -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 Alan Turin

Re: [Rd] update.packages fails with directory not found

2010-05-11 Thread Georgi Boshnakov
directory has been left behind? Georgi Boshnakov Univeristy of Manchester -- Message: 1 Date: Mon, 10 May 2010 00:07:50 -0400 From: Mike Prager To: r-de...@stat.math.ethz.ch Subject: [Rd] update.packages fails with directory

[Rd] install.packages, normalizePath, file permissions

2010-02-18 Thread Georgi Boshnakov
issues and wonder if somebody has encountered similar problems. I am about to try ask the students to install some packages in their area (called p: drive at this Uni) which prompted the first question above. Thank you for any suggestions, Georgi -- Dr Georgi Boshnakov tel

[Rd] function curve() (PR#14191)

2010-01-20 Thread georgi . boshnakov
Full_Name: Georgi Boshnakov Version: 2.10.1pat OS: Windows XP Submission from: (NULL) (130.88.123.205) When calling programmatically function curve() from package:graphics I experienced some trouble since it reports stop("'expr' must be a function or an expressio

[Rd] slight anomaly in formals<- ? (PR#9758)

2007-06-26 Thread georgi . boshnakov
nction(x) NULL > f function(x) NULL > formals(f) <- x > f function (a, b = 4) > formals(f) <- x > f function (a, b = 4, c) > body(f) -- Dr Georgi Boshnakov tel: (+44) (0)161 306 3684 School of Mathematics fax: (+44) (0)161 306 3669 The U