On Wed, 28 Feb 2024 at 17:36, Ivan Krylov wrote:
>
> В Tue, 27 Feb 2024 11:14:19 +0000
> Jon Clayden пишет:
>
> > My testing route is to install the packages within the
> > 'rocker/r-devel' Docker container, which is Debian-based, then use
> > 'time' to evaluate CPU
Dear all,
I'm slightly going out of my mind trying to resolve a CRAN rejection
based on the note
Flavor: r-devel-linux-x86_64-debian-gcc
Check: tests, Result: NOTE
Running 'tinytest.R' [20s/5s]
Running R code in 'tinytest.R' had CPU time 4.4 times elapsed time
This applies
Dear all,
I'd like to be able to read from an arbitrary R connection (in the
sense of ?connections), which would be passed to an R function by the
user and then down into some C code via .Call.
The R API, in file R_ext/Connections.h, specifies a function,
R_ReadConnection, which takes a pointer
Maechler maech...@stat.math.ethz.ch wrote:
Dear Jon,
thank you for raising the issue,
Jon Clayden jon.clay...@gmail.com
on Tue, 28 Jul 2015 12:14:48 +0100 writes:
Sorry; minor clarification. The actual test criterion in the example I
gave is of course abs((0.1-0.102)/0.1) 0.01, not abs
Dear all,
The documentation for `all.equal.numeric` says
Numerical comparisons for ‘scale = NULL’ (the default) are done by
first computing the mean absolute difference of the two numerical
vectors. If this is smaller than ‘tolerance’ or not finite,
absolute differences are
For what it's worth, this issue persists in R-rc_2014-04-02_r65358.
Regards,
Jon
On 24 March 2014 10:40, Jon Clayden jon.clay...@gmail.com wrote:
Dear all,
As of the current R alpha release, I'm seeing timezone-related warnings on
installing any package (including the recommended ones
--without-internal-tzcode.
[*] Although x86_64 OS X has a 64-bit time_t it seems to have a 32-bit
time-zone database and so wraps around.
- Peter D.
On 03 Apr 2014, at 13:24 , Jon Clayden jon.clay...@gmail.com wrote:
For what it's worth, this issue persists in R-rc_2014-04-02_r65358
that it isn't a make dist issue. We do seem
to ship the correct files in src/extra/tzone, but could you please check
Brian's suggestion about TZDIR possibly being set incorrectly?
-pd
On 03 Apr 2014, at 14:47 , Jon Clayden jon.clay...@gmail.com wrote:
Many thanks, Prof Ripley. The --without
Dear all,
As of the current R alpha release, I'm seeing timezone-related warnings on
installing any package (including the recommended ones), which I haven't
seen before. For example,
[~/Documents/Source/R-alpha]$ bin/R CMD INSTALL ~/git/tractor/lib/reportr
* installing to library
Dear all,
I am trying to find a way to reliably and programmatically establish the
resolution (i.e. DPI or equivalent) of an on-screen device. It seemed to me
that
dev.new(width=1, height=1)
dpi - dev.size(px)
would do the trick, but the result does not seem to be correct, at least on
OS X
mathematical functions
in my code, and thereby skirt the problem. R CMD LINK now builds the binary
successfully on both platforms.
Regards,
Jon
On 6 July 2013 06:52, Prof Brian Ripley rip...@stats.ox.ac.uk wrote:
On 06/07/2013 03:19, Simon Urbanek wrote:
Jon,
On Jul 4, 2013, at 10:52 AM, Jon
Dear all,
I have a simple front-end program which uses the APIs described in section
8 of Writing R Extensions to deviate from the standard R behaviour in
fairly minor ways. However, I'm having some difficulty getting it to link
reliably across different platforms.
R CMD LINK seemed like it
If you're intending to run some code that may require user input, then I
share your need. I started two threads on this some time ago [1,2], but as
far as I know it still isn't possible. My workaround is to use expect, or
to create a temporary .Rprofile if that is not available, from within a
Dear David,
I can think of two strategies for dealing with this problem:
Strategy 1: Some code like this:
if (det(X) epsilon) {
warning(Near singular matrix)
return(NULL)
}
return(solve(X))
This solution is probably the easiest one to take, but to match
Dear all,
The current version of my RNiftyReg package is failing to compile on CRAN's
Solaris testbed, but I don't have access to a Solaris system to debug on,
and Googling the error hasn't been very helpful. The error is
CC -library=stlport4 -I/home/ripley/R/cc/include -DNDEBUG -DNDEBUG
On 16 March 2012 00:48, Martin Morgan mtmor...@fhcrc.org wrote:
On 03/15/2012 02:24 PM, Jon Clayden wrote:
Martin,
Thanks for your reply. I wonder if you'd be willing to post your
my_fprintf function, since I'm struggling to get around needing to
use the stdout and stderr symbols completely
still appear. I'm struggling to see how to get around this
without doing something really ugly, like casting integers to FILE*
pointers.
All the best,
Jon
On 15 March 2012 05:04, Martin Morgan mtmor...@fhcrc.org wrote:
On 03/14/2012 05:15 AM, Jon Clayden wrote:
Dear all,
I recognise
Dear all,
I recognise the reason for strongly discouraging use of printf() and
similar C functions in R packages, but I wonder what people do in
practice about third-party code which may be littered with such calls.
I maintain a package (RNiftyReg) which provides an R interface to a
third-party
Dear all,
In R-devel (2011-09-23 r57050), I'm running into a serious problem
with seek()ing on connections opened with gzfile(). A warning is
generated and the file position does not seek to the requested
location. It doesn't seem to occur all the time - I tried to create a
small example file to
on disk
with very simple R-like semantics, and is very fast. Not as fast as a
sequential read... but fast. At present this is 'little endian' only
though, but that describes most of the world today.
Best,
Jeff
On Fri, Sep 23, 2011 at 8:58 AM, Jon Clayden jon.clay...@gmail.com wrote:
Dear
Dear all,
I've just had a package update bounced from CRAN because of a recent
change in R-devel which seems to affect the behaviour of the
initFields() reference class method. (The change must be very recent
because I tested the package on a week-old build of R-devel.) It seems
that the method
, at 6:41 AM, Jon Clayden wrote:
Dear all,
I've just had a package update bounced from CRAN because of a recent
change in R-devel which seems to affect the behaviour of the
initFields() reference class method. (The change must be very recent
because I tested the package on a week-old build
Dear John and others,
I've been wondering about whether there's any way to indicate a nil
reference class object, which will represent no value, and be tested
for, but not fail the internal type checking. NULL is the obvious
choice (or seems so to me), but can only be used if an explicit class
, March 29, 2011 6:49 PM
To: Duncan Murdoch
Cc: r-devel@r-project.org
Subject: Re: [Rd] Reading 64-bit integers
On Mar 29, 2011, at 8:47 PM, Duncan Murdoch wrote:
On 29/03/2011 7:01 PM, Jon Clayden wrote:
Dear Simon,
On 29 March 2011 22:40, Simon
Urbaneksimon.urba...@r-project.org wrote
On 30 March 2011 02:49, Simon Urbanek simon.urba...@r-project.org wrote:
On Mar 29, 2011, at 8:47 PM, Duncan Murdoch wrote:
On 29/03/2011 7:01 PM, Jon Clayden wrote:
Dear Simon,
On 29 March 2011 22:40, Simon Urbaneksimon.urba...@r-project.org wrote:
Jon,
On Mar 29, 2011, at 1:33 PM, Jon
Dear all,
I see from some previous threads that support for 64-bit integers in R
may be an aim for future versions, but in the meantime I'm wondering
whether it is possible to read in integers of greater than 32 bits at
all. Judging from ?readBin, it should be possible to read 8-byte
integers to
Dear Simon,
Thank you for the response.
On 29 March 2011 15:06, Simon Urbanek simon.urba...@r-project.org wrote:
On Mar 29, 2011, at 8:46 AM, Jon Clayden wrote:
Dear all,
I see from some previous threads that support for 64-bit integers in R
may be an aim for future versions
Dear Simon,
On 29 March 2011 22:40, Simon Urbanek simon.urba...@r-project.org wrote:
Jon,
On Mar 29, 2011, at 1:33 PM, Jon Clayden wrote:
Dear Simon,
Thank you for the response.
On 29 March 2011 15:06, Simon Urbanek simon.urba...@r-project.org wrote:
On Mar 29, 2011, at 8:46 AM, Jon
I would also be interested in knowing what the rationale is for this.
Moreover, it seems that the standard (and documented) approach to
this of calling options(defaultPackages=c(...)) in ~/.Rprofile does
not get ignored when installing. The environment variable approach may
work, but it seems to
Dear all,
Is there a way to force R CMD INSTALL to ignore ~/.Rprofile and
similar? I presume it sources these startup files for a reason, but
I've found that it can cause confusion or problems. In particular, my
~/.Rprofile loads a few packages which I very frequently use, but this
stops me from
Dear all,
If I load a package which creates reference classes whilst another
such package is also loaded, I get a warning about masking of the
.requireCachedGenerics variable. (FWIW, both packages are
lazy-loaded.) Googling this variable name turned up only one previous
discussion, which didn't
Sorry - you don't need to assign the value of initFields(). I was
going to do it in two lines but then realised one was enough... :)
TestClass - setRefClass (TestClass,
fields = list (text = character),
methods = list (
initialize = function (text) {
along the
lines of S4 methods with valid signatures.
Thanks again for the example.
On 10/28/2010 12:12 PM, Jon Clayden wrote:
Sorry - you don't need to assign the value of initFields(). I was
going to do it in two lines but then realised one was enough... :)
TestClass- setRefClass
On 23 October 2010 00:52, Jon Clayden jon.clay...@gmail.com wrote:
On 22 October 2010 18:55, John Chambers j...@r-project.org wrote:
As a suggestion, it would be nice if the accessors() method could be
used to create just getters or just setters for particular fields,
although I realise
Dear all,
First, many thanks to John Chambers, and anyone else who was involved,
for the new support for reference classes in R 2.12.0. It's nice to
see this kind of functionality appear in a relatively R-like form, and
with the blessing of the core team. In some contexts it is undoubtedly
On 22 October 2010 18:55, John Chambers j...@r-project.org wrote:
As a suggestion, it would be nice if the accessors() method could be
used to create just getters or just setters for particular fields,
although I realise this can be worked around by removing the unwanted
methods afterwards.
On 16 July 2010 13:32, Hadley Wickham had...@rice.edu wrote:
On Fri, Jul 16, 2010 at 2:08 PM, Jon Clayden jon.clay...@gmail.com wrote:
Dear all,
I am trying to create an environment object with additional attributes, viz.
Foo - structure(new.env(), name=Foo)
Doing this in a standard
Dear all,
The version of readBin() in R-devel includes a use of match(), through
`%in%`, which can affect its performance significantly. By using
primitives instead of the rather expensive call to match(), I reduce
the time spent inside readBin() by more than 30% in some
Dear all,
The version of readBin() in R-devel includes a use of match(), through
`%in%`, which can affect its performance significantly. By using
primitives instead of the rather expensive call to match(), I reduce
the time spent inside readBin() by more than 30% in some of my code
(part of the
Dear all,
For an open-source project that I'm working on (1), which uses R for
all its heavy lifting but includes a wrapper shell script, I was
hoping to find a way to capture all warnings (and, in fact, errors
too), and handle them in my own way. I realise I can do this for a
single
to worry about whether a bit of code might generate
warnings and so should be wrapped.
Regards,
Jon
2009/2/4 Jeffrey Horner jeff.hor...@vanderbilt.edu:
Jon Clayden wrote on 02/04/2009 06:59 AM:
Dear all,
For an open-source project that I'm working on (1), which uses R for all
its heavy lifting
- I'm using it in my own implementation of a sweave
like system.
Hadley
On Wed, Feb 4, 2009 at 6:59 AM, Jon Clayden j.clay...@ucl.ac.uk wrote:
Dear all,
For an open-source project that I'm working on (1), which uses R for all its
heavy lifting but includes a wrapper shell script, I was hoping
2008/9/25 Peter Dalgaard [EMAIL PROTECTED]:
John Chambers wrote:
My application, at least, wanted to show (my class) individual commands
from the file and then optionally insert some typed commands before going on
to the next part of the source file. As far as I can see, the piped shell
Dear all,
I have asked before, in R-help [1], about a way to create an
interactive session in which commands are taken from a file or
standard input - like R CMD BATCH but additionally allowing user input
- but there was no response to that question, and the workarounds that
I have found
from CRAN. It's a bit tedious to set
up (see the Details section of the help file) but uses standard R
sessions to mix lines from a demo file and interactive input.
John
Jon Clayden wrote:
Dear all,
I have asked before, in R-help [1], about a way to create an
interactive session in which
Hi,
A piece of my code that uses readBin() to read a certain file type is
behaving strangely with R 2.7.0. This seems to be because of a failure
to match() strings after using rawToChar() when the original was
terminated with a \0 character. Direct equality testing with ==
still works as
Apologies for missing out the sessionInfo():
R version 2.7.0 (2008-04-22)
i386-apple-darwin8.10.1
locale:
en_GB.UTF-8/en_US.UTF-8/C/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
2008/4/28 Jon Clayden [EMAIL PROTECTED
47 matches
Mail list logo