Displaying 20 results from an estimated 4000 matches similar to: "add .emacs.desktop and .emacs.desktop.lock to files ignored by R CMD build?"
2004 Aug 02
4
Is k equivalent to k:k ?
Hi,
I wonder if the following (apparent) inconsistency is a bug or feature.
Since scalars are simply vectors of length one I would think that
a and
a:a
produce the same result. For example,
> identical(4.01,4.01:4.01)
[1] TRUE
However,
identical(4,4:4)
[1] FALSE
and
> identical(4.0,4.0:4.0)
[1] FALSE
A closer look reveals that the colon operator produces objects
2004 Dec 08
4
Is k equivalent to k:k ?
Bringing up an old topic on a small technicality.
In the help documentation on seq.
Value:
The result is of 'mode' '"integer"' if 'from' is (numerically
equal to an) integer and 'by' is not specified.
The arguement in seq specifying length also creates "double" which is not obvious in the wording, as "by" is not specified
2004 Dec 08
4
Is k equivalent to k:k ?
Bringing up an old topic on a small technicality.
In the help documentation on seq.
Value:
The result is of 'mode' '"integer"' if 'from' is (numerically
equal to an) integer and 'by' is not specified.
The arguement in seq specifying length also creates "double" which is not obvious in the wording, as "by" is not specified
2011 Jan 10
0
overfilled signature lines in documentation shell for methods
The documentation shells created by the utility functions for classes and methods
contain section "Methods". Due to a slight difference in the layout and the underlying Rd code,
function signatures are wrapped on the following line (if necessary) in the "methods" section in a class description (xxx-class.Rd)
but not in xxx.-methods.Rd. As a result long signatures may
2007 Jun 26
1
slight anomaly in formals<- ? (PR#9758)
Hi,
The R input/output after the following paragraph is from a session with
version.string R version 2.4.0 Patched (2006-11-23 r39958).
The last element, x$c, of x has no value and after the assignment of x to the
formals of f, x$c does not become a formal argument of f. The second assignment
does the job. It seems that x$c actually becomes the body of f after the first
assignment. There is no
2012 Nov 15
0
R-devel Digest, Vol 117, Issue 13
Hi,
> ... Wrong. It looks like internally a[[1]] is always used instead of a[[i]].
> The real problem it seems is that 'a' is treated as if it was of
> ength 1:
>
> > mapply(function(x, y) {x * y}, a, 1:3)
> [1] 101 202 303
> > mapply(function(x, y) {x * y}, a, 5)
> [1] 505
>
> In other words, internal dispatch works for [[ but not for length().
2010 Feb 18
0
install.packages, normalizePath, file permissions
Dear developers,
I have a small but more or less well defined inquiry. Another, more
general one for which I was not able to find information is towards
the end of this messages. The question seems to be too technical for
R-help, that is why I post it here.
When installing packages (Windows XP), occasionally the installation
does not complete because, it seems, Windows locks some files.
2019 Jun 28
1
tools::package_native_routine_registration_skeleton?
On 28/06/2019 6:27 a.m., Koenker, Roger W wrote:
> Thanks, I was just coming to that conclusion and beginning to look for a way to make a list of
> exportable objects.
After library(quantreg), ls("package:quantreg") will list all the names
you currently export. So
cat(ls("package:quantreg"), sep = ", ")
will print the list in a form suitable for including
2018 May 25
2
Rd parser throws error for user macros invoked with empty argument
While on the topic of Rd macro arguments, it seems that if a multiline argument is supplied, the lines after the first are silently ignored:
f <- tempfile()
mac6 <- "\\newcommand{\\mac6}{mac6: #1}"
cat(mac6, "\\mac6{2*3
2+2
sin(pi)
}\n", file = f)
rd <- tools::parse_Rd(f)
> rd
mac6: 2*3
---
Georgi Boshnakov
-----Original Message-----
From: Tomas Kalibera
2014 May 07
0
Historical NA question (Herv? Pag?s)
"Equivalence" certainly does not mean that literally replacing some text will not change the result.
>From "R language definition", p. 11:
> Except for the syntax, there is no difference between applying an operator and calling a
function. In fact, x + y can equivalently be written ?+?(x, y). Notice that since ?+? is a nonstandard
function name, it needs to be quoted.
2014 Nov 25
0
problem with setGroupGeneric from package methods
Hi,
There seems to be a problem with setGroupGeneric() from package 'methods'. The symptoms are somewhat erratic, in the sense that small changes may lead to any of the following behaviours.
1.Package works without problems on Windows and installs on Linux but gives error when loaded with library().
2.Package installs on both systems and gives error when loaded on any of them.
3.
2010 Jan 20
1
function curve() (PR#14191)
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 expression containing 'x'")
even if expr is "expression". Naturally, the user message uses
2018 Jun 18
2
incomplete results from as.character.srcref() in some cases involving quote()
Hi,
The result of as,character() on 'srcref' objects doesn't have the closing ')' in some cases involving 'quote':
> e4 <- quote({2+2})
> class(attr(e4, "wholeSrcref"))
[1] "srcref"
> as.character(attr(e4, "wholeSrcref"))
[1] "e4 <- quote({2+2}"
As a result printing the object also lacks it and gives an
2019 Jun 28
2
tools::package_native_routine_registration_skeleton?
> ... reports that the fortran names of all the registered fortran functions are ?undocumented objects?...
Those symbols should not be exported. In quantreg v5.33, NAMESPACE has 'exportPattern(".")'. Maybe it is a good time to remove that and export explicitly the symbols that are meant for export.
Georgi Boshnakov
------------------------------
Message: 6
Date: Fri, 28
2018 May 14
3
Rd parser throws error for user macros invoked with empty argument
Bug or feature?
I get the following error from parse_Rd() when a user Rd macro (including system ones) is invoked with empty argument {},
eg \mymacro{}:
Error in tools::parse_Rd(fn) :
Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
A full example is further below with the system macro \CRANpkg{}. In this example it doesn't make sense to use empty argument but
2019 Jun 28
0
tools::package_native_routine_registration_skeleton?
Thanks, I was just coming to that conclusion and beginning to look for a way to make a list of
exportable objects.
Roger Koenker
r.koenker at ucl.ac.uk<mailto:r.koenker at ucl.ac.uk>
Department of Economics, UCL
London WC1H 0AX.
On Jun 28, 2019, at 11:23 AM, Georgi Boshnakov <georgi.boshnakov at manchester.ac.uk<mailto:georgi.boshnakov at manchester.ac.uk>> wrote:
...
2018 Oct 29
1
disappearing paragraphs in html rendering of text from Rd macros
Recent changes in R-devel seem to change the HTML rendering of text returned by Rd macros,
in that now empty lines do not cause paragraphs to end (the empty lines are kept but <p> tags are not set).
As a result, multiple paragraphs are output as a single one.
A complete example Rd file is at: https://github.com/GeoBosh/reprexes/blob/master/disappearingParagraphs/a.Rd
rendered (2018-10-28)
2019 Apr 17
1
R CMD check does not report redundant '...' argument described in Rd File
R's checks seem to be failing to notice a redundant '...' argument described in the documentation of a function.
Consider a function:
fun_3 <- function(arg1, arg2, arg3) {
"I am fun_3"
}
If its documentation describes an argument, say 'dummy', R check reports something like:
* checking Rd \usage sections ... WARNING
Documented arguments not in \usage in
2019 Sep 06
2
install_github and survival
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
----------------------------------------------------------------------
Message: 1
Date: Thu, 05 Sep 2019 12:53:11 -0500
From: "Therneau, Terry M.,
2020 Sep 11
0
more Matrix weirdness
Abby, my answer was too concise. The thrust is that even if you define a method for
"[<-" with signature x="matrix" and value ="Matrix", for example, it will never be used since "matrix" is S3.
If instead x="someS4class" then the S4 method will be invoked.
There may be cases when changing the class of the left-hand side make sense (such as