search for: clayden

Displaying 20 results from an estimated 39 matches for "clayden".

2010 Jul 16
2
Creating an environment with attributes in a package
...e found is the mention in the language definition that "assigning attributes to an environment can lead to surprises". I'm not sure if this is one of the surprises that the author(s) had in mind! Could someone tell me whether this is expected, please? All the best, Jon -- Jonathan D Clayden, PhD Lecturer in Neuroimaging and Biophysics Radiology and Physics Unit UCL Institute of Child Health 30 Guilford Street LONDON WC1N 1EH United Kingdom t | +44 (0)20 7905 2708 f | +44 (0)20 7905 2358 w | www.homepages.ucl.ac.uk/~sejjjd2/ w | www.diffusion-mri.org.uk/people/1
2015 Jul 30
1
all.equal: possible mismatch between behaviour and documentation
Dear Jon, thank you for raising the issue, >>>>> Jon Clayden <jon.clayden at 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(0.1) < 0.01. In > any case, this does not match (my...
2015 Jul 28
2
all.equal: possible mismatch between behaviour and documentation
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 used, otherwise relative differences scaled by the mean absolute difference. But the actual behaviour
2009 Aug 11
1
readBin() arg check has unnecessary overhead (patch included)
...c("numeric", "double", "integer", "int", "logical", + "complex", "character", "raw"))) what <- typeof(what) .Internal(readBin(con, what, n, size, signed, swap)) -- Jonathan D. Clayden, Ph.D. Research Fellow Radiology and Physics Unit UCL Institute of Child Health 30 Guilford Street LONDON WC1N 1EH United Kingdom t | +44 (0)20 7905 2708 f | +44 (0)20 7905 2358 w | www.homepages.ucl.ac.uk/~sejjjd2/ w | www.diffusion-mri.org.uk/people/1
2009 Feb 04
2
Capturing all warnings (with messages)
...ds [8] base other attached packages: [1] tractor.session_1.0.0 tractor.base_1.0.3 tractor.nt_1.0.2 loaded via a namespace (and not attached): [1] tools_2.8.1 Regards, Jon (1) http://code.google.com/p/tractor/ (2) http://finzi.psych.upenn.edu/R/Rhelp02/archive/61872.html -- Jonathan D. Clayden, Ph.D. Research Fellow Radiology and Physics Unit UCL Institute of Child Health 30 Guilford Street LONDON WC1N 1EH United Kingdom t | +44 (0)20 7905 2708 f | +44 (0)20 7905 2358 w | www.homepages.ucl.ac.uk/~sejjjd2/
2008 Apr 28
4
R 2.7.0, match() and strings containing \0 - bug?
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 expected. I can reproduce this as follows: > x <- "foo" > y <-
2008 Sep 24
2
R --interactive and readline() creates infinite loop
...wonder if there is any way to achieve an interactive session based on a predefined set of commands without writing a completely new front-end (overkill, surely?). Any guidance would be appreciated. Regards, Jon [1] http://finzi.psych.upenn.edu/R/Rhelp02a/archive/117412.html -- Jonathan D. Clayden, Ph.D. Research Fellow Radiology and Physics Unit UCL Institute of Child Health 30 Guilford Street LONDON WC1N 1EH United Kingdom t | +44 (0)20 7905 2708 f | +44 (0)20 7905 2358 w | www.homepages.ucl.ac.uk/~sejjjd2/
2011 May 04
1
General "nil" reference class object
...;Foo"), methods=list( + initialize=function (foo=nilObject) { initFields(foo=foo) })) > is.nilObject(Bar$new()$foo) [1] TRUE Is there already something like this that I'm not aware of? If not, would it be possible and generally desirable to create it? All the best, Jon -- Jonathan D Clayden, PhD Lecturer in Neuroimaging and Biophysics Imaging and Biophysics Unit UCL Institute of Child Health 30 Guilford Street LONDON WC1N 1EH United Kingdom
2015 Jul 28
0
all.equal: possible mismatch between behaviour and documentation
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(0.1) < 0.01. In any case, this does not match (my reading of) the docs, and the result is not `TRUE`. Regards, Jon On 28 July 2015 at 11:58, Jon Clayden <jon.clayden at gmail.com> wrote: > 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 s...
2012 Oct 23
1
Mirror of the R manuals with a new visual style
...;. This mirror does not modify the content of the manuals at all, but simply injects a new visual style with the aim of making the text easier to read and navigate. It will be updated after each release of R. The code used to generate these versions is freely available at <https://github.com/jonclayden/r-manuals>. I hope some people find this useful. Comments are welcome. All the best, Jon
2011 Sep 23
2
Issue with seek() on gzipped connections in R-devel
...not seek to the requested location. It doesn't seem to occur all the time - I tried to create a small example file to illustrate it, but the problem didn't occur. However, it can be seen with a file I use for testing my packages, which is available through the URL <https://github.com/jonclayden/tractor/blob/master/tests/data/nifti/maskedb0_lia.nii.gz?raw=true>: > con <- gzfile("~/Downloads/maskedb0_lia.nii.gz","rb") > seek(con, 352) [1] 0 Warning message: In seek.connection(con, 352) : seek on a gzfile connection returned an internal error > seek(con,...
2007 Jan 26
1
readBin is much slower for raw input than for a file
Dear all, I'm trying to write an efficient binary file reader for a file type that is made up of several fields of variable length, and so requires many small reads. Doing this on the file directly using a sequence of readBin() calls is a bit too slow for my needs, so I tried buffering the file into a raw vector and reading from that ("loc" is the equivalent of the file pointer):
2007 Jan 26
1
readBin is much slower for raw input than for a file
Dear all, I'm trying to write an efficient binary file reader for a file type that is made up of several fields of variable length, and so requires many small reads. Doing this on the file directly using a sequence of readBin() calls is a bit too slow for my needs, so I tried buffering the file into a raw vector and reading from that ("loc" is the equivalent of the file pointer):
2007 Dec 19
1
Standard input and R
Dear all, I am trying to wrap a *nix shell script around R for a particular purpose, for which I need to get R to execute predetermined commands but retain interactivity and allow user input during their execution. A straight redirection of standard input is therefore not appropriate, and I don't think "littler" is the solution because I don't want to write an
2014 Mar 24
1
Timezone warnings on package install in R-alpha
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 '/Users/jon/Documents/Source/R-alpha/library' * installing *source* package 'reportr' ...
2012 Dec 03
1
Compilation failure on Solaris: any advice?
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 -DRNIFTYREG -I/usr/local/include -KPIC -O -xlibmil -xtarget=native -nofstore -c niftyreg.cpp
2011 Mar 29
2
Reading 64-bit integers
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 some degree, but it is clearly limited in practice by R's internally 32-bit integer type:
2009 May 20
0
New package for medical image manipulation: tractor.base
.... The package is written in pure R. This package stands alone, but it is also part of the larger TractoR project for working with MR images and diffusion MR based tractography. Further information about TractoR can be found at <http://code.google.com/p/tractor>. Regards, Jon -- Jonathan D. Clayden, Ph.D. Research Fellow Radiology and Physics Unit UCL Institute of Child Health 30 Guilford Street LONDON WC1N 1EH United Kingdom t | +44 (0)20 7905 2708 f | +44 (0)20 7905 2358 w | www.homepages.ucl.ac.uk/~sejjjd2/ _______________________________________________ R-packages mailing list R-packag...
2009 May 20
0
New package for medical image manipulation: tractor.base
.... The package is written in pure R. This package stands alone, but it is also part of the larger TractoR project for working with MR images and diffusion MR based tractography. Further information about TractoR can be found at <http://code.google.com/p/tractor>. Regards, Jon -- Jonathan D. Clayden, Ph.D. Research Fellow Radiology and Physics Unit UCL Institute of Child Health 30 Guilford Street LONDON WC1N 1EH United Kingdom t | +44 (0)20 7905 2708 f | +44 (0)20 7905 2358 w | www.homepages.ucl.ac.uk/~sejjjd2/ _______________________________________________ R-packages mailing list R-packag...
2011 Feb 15
1
Reference classes and ".requireCachedGenerics"
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 immediately help, except to suggest that it may be related to my defining an S3 method