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
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
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
- 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
\\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
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
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
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
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
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
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
+ 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
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
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: <
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
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
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
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
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
: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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
45 matches
Mail list logo