Displaying 20 results from an estimated 20000 matches similar to: "Why does format.default skip dispatch for list items?"
2011 Feb 25
1
R CMD build error (RProtoBuf on windows)
Hello all,
I am trying to port the package RProtoBuf to windows. The developers of RProtoBuf have given me some helpful pointers so far, but now I am stuck.
After having made what I think are the necessary changes to the package to compile on windows, "R CMD build RProtoBuf" outputs a somewhat cryptic error ("This application has requested the Runtime to terminate it in an unusual
2018 Jul 06
1
CRAN: Update protocol buffers on macOS? (for RProtoBuf)
Hi,
I notice that the CRAN binary for the macOS version of RProtoBuf is
built against quite an old version of protocol buffers (from 2014,
before v3 format support was added).
the windows version is (blessedly) kept up-to-date, but I'd like to
float the suggestion that the macOS version get an update too.
with thanks
jonathon
2009 May 18
1
S4 method dispatch and namespaces: why is default method selected
Hi,
I ran into the following peculiarity involving S4 method dispatch and
namespaces.
I develop a package which have a namespace and which depends on 'pixmap'
package, which itself does not have a namespace.
Now, in my package I have a class which has a slot for objects from
class "pixmap" and I
want to have a "plot" method for this new class. Not to clutter the
2024 Dec 13
1
Is it advisable/possible to default on Linux to an EDITOR that actually exists?
On 11 December 2024 at 15:00, Michael Chirico wrote:
| Thanks Simon, I didn't know that! That's definitely a compelling
| reason to leave the current default untouched and to eschew any
| finicky attempts to find back-up editors.
I am not sure I agree with the fairly bold statement by Simon. I do not
install or use that many different Unix flavours but I do come across some
that do not,
2012 Jul 19
3
On RObjectTables
I was wondering if anyone knows more about the state of RObjectTables. This
largely undocumented functionality was introduced by Duncan around 2002
somewhere and enables you create an environment where the contents are
dynamically queried by R through a hook function. It is mentioned in R
Internals and ?attach. This functionality is quite powerful and allows you
to e.g. offload a big database of R
2019 Nov 25
1
class(<matrix>) |--> c("matrix", "arrary") -- and S3 dispatch
On 21 November 2019 at 17:57, Martin Maechler wrote:
| (if you use a version of R-devel, with svn rev >= 77446; which
| you may get as a binary for Windows in about one day; everyone
| else needs to compile for the sources .. or wait a bit, maybe
| also not much longer than one day, for a docker image) :
FYI: rocker/drd [1] and rocker/r-devel both have rev 77455 now (as they are
both on
2010 May 17
0
Rcpp 0.8.0 on CRAN
===== Summary =====
Version 0.8.0 of the Rcpp package was released to CRAN today. This release
marks another milestone in the ongoing redesign of the package, and
underlying C++ library.
===== Overview =====
Rcpp is an R package and C++ library that facilitates integration of C++
code in R packages.
The package features a set of C++ classes (Rcpp::IntegerVector,
Rcpp::Function,
2010 May 17
0
Rcpp 0.8.0 on CRAN
===== Summary =====
Version 0.8.0 of the Rcpp package was released to CRAN today. This release
marks another milestone in the ongoing redesign of the package, and
underlying C++ library.
===== Overview =====
Rcpp is an R package and C++ library that facilitates integration of C++
code in R packages.
The package features a set of C++ classes (Rcpp::IntegerVector,
Rcpp::Function,
2010 Feb 11
2
LinkingTo and C++
Hello,
I've been trying to make LinkingTo work when the package linked to has
c++ code.
I've put dumb packages to illustrate this emails here ;
http://addictedtor.free.fr/misc/linkingto
Package A defines this C++ class:
class A {
public:
A() ;
~A() ;
SEXP hello() ;
} ;
Package B has this function :
SEXP say_hello(){
A a ;
return a.hello() ;
}
headers of package A are copied
2018 Feb 27
2
scale.default gives an incorrect error message when is.numeric() fails on a sparse row matrix (dgeMatrix)
I am attempting to use the lars package with a sparse input feature matrix,
but the following fails:
library(Matrix)
library(lars)
data(diabetes)
attach(diabetes)
x = as(as.matrix(as.data.frame(x)), 'dgCMatrix')
lars(x, y, intercept = FALSE)
Error in scale.default(x, FALSE, normx) :
>
> length of 'scale' must equal the number of columns of 'x'
>
>
More
2009 Aug 03
1
DO NOT REPLY [Bug 6603] New: Improve --skip-compress default values
https://bugzilla.samba.org/show_bug.cgi?id=6603
Summary: Improve --skip-compress default values
Product: rsync
Version: 3.0.6
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: jari.aalto at cante.net
2018 Mar 01
0
scale.default gives an incorrect error message when is.numeric() fails on a dgeMatrix
>>>>> Michael Chirico <michaelchirico4 at gmail.com>
>>>>> on Tue, 27 Feb 2018 20:18:34 +0800 writes:
Slightly amended 'Subject': (unimportant mistake: a dgeMatrix is *not* sparse)
MM: modified to commented R code, slightly changed from your post:
## I am attempting to use the lars package with a sparse input feature matrix,
## but the following
2024 Dec 11
1
Is it advisable/possible to default on Linux to an EDITOR that actually exists?
Thanks Simon, I didn't know that! That's definitely a compelling
reason to leave the current default untouched and to eschew any
finicky attempts to find back-up editors.
Still, I think there is benefit from checking quickly that 'editor'
exists at run-time in file.edit() -- the current failure mode is
unusual (a shell error & R warning). Offering an R error would also
2018 May 16
0
Dispatch mechanism seems to alter object before calling method on it
On Wed, May 16, 2018 at 12:23 PM, Herv? Pag?s <hpages at fredhutch.org> wrote:
> On 05/16/2018 10:22 AM, Michael Lawrence wrote:
>>
>> Factors and data.frames are not structures, because they must have a
>> class attribute. Just call them "objects". They are higher level than
>> structures, which in practice just shape data without adding a lot of
2017 May 17
0
r-cran-rjava dependencies on debian jesse, library(rJava) fails when default-jre is missing
On 17 May 2017 at 08:46, Vaidotas Zemlys wrote:
| Hi,
|
| > Le 17 mai 2017 ? 00:42, Dirk Eddelbuettel <edd at debian.org> a ?crit :
| >
| >
| > On 8 May 2017 at 15:39, Vaidotas Zemlys wrote:
| > | Hi,
| > |
| > | Dirk Eddelbuettel advised me to write here. Here is my original letter to him:
| > |
| > | I would like to enquire about package r-cran-rjava on
2006 Feb 27
0
method dispatch and in-place modification? - unclass, RemoveClass, getDataPart, method dispatch
I have a little problem about method dispatch and "unnessary" copying.
Basically what I would like to do is:
`[.myclass` <- function(x, i,j, extraopt=TRUE/FALSE, drop=TRUE) {
...do stuff depending on extraopt...
value <- Nextmethod("[", x, i,j, drop=TRUE)
... do more stuff depending on extraopt...
}
I have two general problems:
(1) NextMethod() really
2024 Jan 26
1
[External] readChar() could read the whole file by default?
On Fri, 26 Jan 2024, Michael Chirico wrote:
> I am curious why readLines() has a default (n=-1L) to read the full
> file while readChar() has no default for nchars= (i.e., readChar(file)
> is an error). Is there a technical reason for this?
>
> I often[1] see code like paste(readLines(f), collapse="\n") which
> would be better served by readChar(), especially given
2017 May 16
0
r-cran-rjava dependencies on debian jesse, library(rJava) fails when default-jre is missing
On 8 May 2017 at 15:39, Vaidotas Zemlys wrote:
| Hi,
|
| Dirk Eddelbuettel advised me to write here. Here is my original letter to him:
|
| I would like to enquire about package r-cran-rjava on Debian jesse. It seems that if default-jre package is not installed, but openjdk-7-jre is installed, then library(rJava) in R fails. I?ve been bitten by this today and I wonder whether this an issue of
2006 May 01
1
format.info() versus format.default(): Comments please
The format.info() function currently takes args (x, digits = NULL,
nsmall = 0), while format.default() takes many more:
function (x, trim = FALSE, digits = NULL, nsmall = 0, justify = c("left",
"right", "centre", "none"), width = NULL, na.encode = TRUE,
scientific = NA, big.mark = "", big.interval = 3, small.mark = "",
2010 Feb 17
1
skip lapply item for conditions(RAM, execution time)
Hi,
I use lapply with a function from a package, and every 20th to 50th function execution (out of 500 to 10 000 times) fails for some unknown reason. RAM consumption ever increases (out of limit) and execution time is endless. I am not going to debug the package. (I rather feel like an end-user.)
If it was Java, I'd wrap the function in a try...catch statement like about
try{