Re: [Rd] How to safely using OpenMP pragma inside a .C() function?

2011-09-01 Thread Prof Brian Ripley
Note that currently R internals do not actually use multiple threads in OpenMP, and there is no documented way to make them do so. The main issue is that there is insufficient knowlege of where they are worthwhile (which is both OS and platform-dependent: we don't even have reliable

Re: [Rd] Non-GPL C (or R) inside of a package

2011-08-30 Thread Prof Brian Ripley
On Tue, 30 Aug 2011, Duncan Murdoch wrote: On 30/08/2011 1:50 PM, Jeffrey Ryan wrote: R-devel, I am interested in creating a package that requires non-GPL'd (commercial) C code to work. In essence it is a single .c file with no use of R headers (all .C callable functions). For example's

Re: [Rd] autogenerated namespaces not initialized correctly

2011-08-11 Thread Prof Brian Ripley
On Thu, 11 Aug 2011, Michael Lawrence wrote: Hi guys, This probably isn't news, but when a package is given an autogenerated namespace, its .First.lib, if any, is no longer called. Please do read the NEWS file: .First.lib *is* called as either .onLoad or .onAttach. This causes problems,

Re: [Rd] Making rmath.dll (or equivalent)

2011-08-08 Thread Prof Brian Ripley
It is Rmath.dll: case often matters in searching. You should look in the obvious manual in your (old) installation, the 'R Installation and Administration' manual. The current version is at http://cran.r-project.org/doc/manuals/R-admin.html#The-standalone-Rmath-library On Mon, 8 Aug 2011,

Re: [Rd] [R] RPMs needed to compile R using the tar.gz file

2011-08-05 Thread Prof Brian Ripley
First off, this was an R-devel question (or maybe an r-sig-fedora one). It is not at all easy to give a complete answer: the list is very long and changes rapidly as Fedora updates. If you can use yum to install a minimal list and let it get the dependencies the list would be manageable.

Re: [Rd] NAMESPACE problems

2011-08-02 Thread Prof Brian Ripley
On Wed, 3 Aug 2011, robin hankin wrote: Hi. I am having difficulty following section 1.6.6 of the R-extensions manual. Also in following the posting guide: which version of R is this (it matters here!)? It seems you are failing to import the functions you are attempting to take over as

Re: [Rd] R CMD CHECK doens't run configure when testing install?

2011-07-29 Thread Prof Brian Ripley
Please don't spam multiple lists! And follow the posting guide: you have not given the reproducible example asked for, there is no signature block Of course you could waste people's time by submitting a package that does not past R CMD check, but you are asked to follow a set of checks

Re: [Rd] package encoding warning

2011-07-29 Thread Prof Brian Ripley
On Sat, 30 Jul 2011, baptiste auguie wrote: Dear list, I'd like to get rid off a couple of warnings that have appeared in checking my package on CRAN (I did not find them on my local machine before submission). What puzzles me is that different platforms return different warnings, only one of

Re: [Rd] --max-vsize

2011-07-26 Thread Prof Brian Ripley
Point 1 is as documented: you have exceeded the maximum integer and it does say that it gives NA. So the only 'odd' is reporting that you did not read the documentation. Point 2 is R not using the correct units for --max-vsize (it used the number of Vcells, as was once documented), and I

Re: [Rd] Start-up messages when Importing from a package

2011-07-23 Thread Prof Brian Ripley
The message is from maptools (as it says), not sp. No, there is nothing you can do when dependent packages put out messages. You could ask the maintainer not to put the message out when rgeos is available On Fri, 22 Jul 2011, Mauricio Zambrano-Bigiarini wrote: Dear List, I'm

Re: [Rd] Problem with creating default NAMESPACE on FreeBSD

2011-07-22 Thread Prof Brian Ripley
It does not seem to happen to anyone else, including me on FreeBSD. Is this a completely clean install? src/library/datasets/Makefile definitely installs a NAMESPACE file as part of the mkR1 target, so I would check that you have a src/library/datasets/NAMESPACE file in your sources. (There

Re: [Rd] Problem with creating default NAMESPACE on FreeBSD

2011-07-22 Thread Prof Brian Ripley
the tarballs, but CRAN is not manned at present.) But as far as I can the 'make dist' procedure does work now and did at some point in the last week. On Fri, 22 Jul 2011, Prof Brian Ripley wrote: It does not seem to happen to anyone else, including me on FreeBSD. Is this a completely clean

Re: [Rd] apply() returning a list?

2011-07-21 Thread Prof Brian Ripley
On Wed, 20 Jul 2011, David A. Johnston wrote: I understand that the coercion to a list is somewhat trivial. The coercion is a little less obvious when apply()'s output is a matrix. For example, x = matrix(1:12, 3, 4) apply(x, 1, range) [,1] [,2] [,3] [1,]123 [2,] 10 11

Re: [Rd] [R] Problem compiling in extra/xdr

2011-07-21 Thread Prof Brian Ripley
On Wed, 20 Jul 2011, Prof Brian Ripley wrote: 1) The current R-patched should compile src/extra/xdr on 32-bit Linux systems. 2) Longer-term or on a 64-bit platform the solution is to make use of libtirpc: you would need both this installed (common now) and its headers (unlikely

Re: [Rd] [R] Problem compiling in extra/xdr

2011-07-20 Thread Prof Brian Ripley
to be in the C include path (not easy to do portably, but using C_INCLUDE_PATH will work on Linux), the tirpc versions should be found. On Tue, 19 Jul 2011, Prof Brian Ripley wrote: On Mon, 18 Jul 2011, Allin Cottrell wrote: On Mon, 18 Jul 2011, Prof Brian Ripley wrote: 1) R-help is the wrong list: see

Re: [Rd] Compiling R-2.13.1 with MKL in windows 7 64bit

2011-07-20 Thread Prof Brian Ripley
On Wed, 20 Jul 2011, Simon Urbanek wrote: On Jul 20, 2011, at 3:01 PM, Duncan Murdoch wrote: On 20/07/2011 10:40 AM, WADA Kazuya wrote: Hi I don't know how to complie R-2.13.1 with MKL in windows 7 64bit. I can compile normal R in windows using Rtools under R-admin.html description.

Re: [Rd] Manipulating single-precision (float) arrays in .Call functions

2011-07-19 Thread Prof Brian Ripley
On Mon, 18 Jul 2011, Alireza Mahani wrote: Simon, Thank you for elaborating on the limitations of R in handling float types. I think I'm pretty much there with you. As for the insufficiency of single-precision math (and hence limitations of GPU), my personal take so far has been that

[Rd] Welcome Uwe Ligges to R-core

2011-07-19 Thread Prof Brian Ripley
Uwe is now a member of R-core. -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1

Re: [Rd] [R] Problem compiling in extra/xdr

2011-07-18 Thread Prof Brian Ripley
1) R-help is the wrong list: see the posting guide. I've moved this to R-devel. 2) A glibc system should not be compiling in that directory. glibc 2.14 is rather recent and NEWS does say * The RPC implementation in libc is obsoleted. Old programs keep working but new programs cannot be

Re: [Rd] [R] Problem compiling in extra/xdr

2011-07-18 Thread Prof Brian Ripley
On Mon, 18 Jul 2011, Allin Cottrell wrote: On Mon, 18 Jul 2011, Prof Brian Ripley wrote: 1) R-help is the wrong list: see the posting guide. I've moved this to R-devel. 2) A glibc system should not be compiling in that directory. glibc 2.14 is rather recent and NEWS does say * The RPC

Re: [Rd] NAMESPACE

2011-07-17 Thread Prof Brian Ripley
On Sun, 17 Jul 2011, Duncan Murdoch wrote: On 11-07-16 10:13 PM, Gabor Grothendieck wrote: Packages without explicit ‘NAMESPACE’ files will have a default one created at build or INSTALL time, so all packages will have namespaces. A consequence of this is that ‘.First.lib’ functions need to

Re: [Rd] Creating package Vignette

2011-07-14 Thread Prof Brian Ripley
if it worked, which it currently does not). We just ask that we are told so on submission. -Melissa On Thu, Jul 14, 2011 at 1:00 PM, Ben Bolker bbol...@gmail.com wrote: Prof Brian Ripley ripley at stats.ox.ac.uk writes: It depends what you mean by 'vignette': the R docs have been unclear

Re: [Rd] save.image compression_level argument

2011-07-13 Thread Prof Brian Ripley
On Mon, 11 Jul 2011, andr...@eckner.com wrote: Hi, in save.image, it would be nice if there was a compression_level argument that is passed along to save. Or is there a reason for disabling the compression_level option for saving workspaces, but enabling it for manually saving individual

Re: [Rd] sort infelicity

2011-07-10 Thread Prof Brian Ripley
Collation is locale-specific. To stop problems such as that you encontered, where it matters 'R CMD check' uses LC_COLLATE=C (and documents it). Otherwise package checks would be system-dependent, and maybe even user-dependent. It really isn't a good idea to misuse examples in help files

[Rd] Recent and upcoming changes to R-devel

2011-07-04 Thread Prof Brian Ripley
There was an R-core meeting the week before last, and various planned changes will appear in R-devel over the next few weeks. These are changes planned for R 2.14.0 scheduled for Oct 31. As we are sick of people referring to R-devel as '2.14' or '2.14.0', that version number will not be used

Re: [Rd] Recent and upcoming changes to R-devel

2011-07-04 Thread Prof Brian Ripley
On Mon, 4 Jul 2011, Martin Morgan wrote: On 07/04/2011 05:08 AM, Prof Brian Ripley wrote: There was an R-core meeting the week before last, and various planned changes will appear in R-devel over the next few weeks. These are changes planned for R 2.14.0 scheduled for Oct 31. As we are sick

Re: [Rd] Checking R manual build

2011-06-22 Thread Prof Brian Ripley
On Wed, 22 Jun 2011, Stephen Ellison wrote: Is there a quick way of checking the R manuals built from the .texi files in ../doc/manual without building the rest of R? What does 'check' mean? Going from a vanilla checkout, some included files are missing (eg version.texi) and created by the

Re: [Rd] R CMD check on CRAN

2011-06-19 Thread Prof Brian Ripley
On Sun, 19 Jun 2011, Uwe Ligges wrote: On 19.06.2011 20:17, soeren.vo...@uzh.ch wrote: Hello I have a package with a configure script (--include-something). How does the package pass the check on CRAN, that is, how should I signalise that check and install may need options? Which

Re: [Rd] X11 device windows are spawned with empty WM_NAME property

2011-06-17 Thread Prof Brian Ripley
On Fri, 17 Jun 2011, peter dalgaard wrote: On Jun 17, 2011, at 01:53 , Drew Frank wrote: Hello, I've noticed that X11 device windows (the ones that pop up when I plot something on Linux) aren't assigned any WM_NAME property until after they've been spawned. This causes problems for users

Re: [Rd] Loose code in R package files

2011-06-16 Thread Prof Brian Ripley
are created at install time. At load time, the stub loader creates promises to objects in the database in an environment in the current session. There is rather more to it, e.g. for lazydata and packages with sysdata.rda, but that is gist. On Wed, 15 Jun 2011, Prof Brian Ripley wrote: On Tue, 14 Jun

Re: [Rd] Loose code in R package files

2011-06-15 Thread Prof Brian Ripley
On Tue, 14 Jun 2011, Stephen Ellison wrote: I'm sure i've seen the answer to this, but can't find it: If there is executable code in an R package .R file that does not return a function (that is, something like x - rnorm(5), outside any function body ), what will actually happens at build

Re: [Rd] Cross-compiling package

2011-06-12 Thread Prof Brian Ripley
On Sun, 12 Jun 2011, Uwe Ligges wrote: On 12.06.2011 18:57, Sylvain Loiseau wrote: Hello, I'm facing problems with compiling a package (containing only R-code and dataset) under OSX for Windows. Packages are 'installed': compilation is only involved if they contain C/Fortran/C++/...

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-11 Thread Prof Brian Ripley
Note that until May 8 graph was a CRAN packge and the current version was 1.30.0. So of course CRAN binary packages built between April 26 and May 8 were built against the current CRAN version of graph, for any version of R. On Fri, 10 Jun 2011, Martin Morgan wrote: On 06/10/2011 05:46 PM,

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-11 Thread Prof Brian Ripley
On Sat, 11 Jun 2011, Kornelius Rohmeyer wrote: 2011/6/11 Prof Brian Ripley rip...@stats.ox.ac.uk: Note that until May 8 graph was a CRAN packge and the current version was 1.30.0.  So of course CRAN binary packages built between April 26 and May 8 were built against the current CRAN version

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Prof Brian Ripley
On Fri, 10 Jun 2011, Janko Thyson wrote: Dear list, I've been trying to get gWidgets/gWidgetsRGtk2 to run every other month for a while, but somehow I simply can't figure out what's going wrong. Your subject line indicates your confusion. It does not say RGtk2.dll cannot be found (at

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Prof Brian Ripley
work for me, Uwe on winbuilder and in our teaching lab (and the advice in RGtk2 does not). On Fri, 10 Jun 2011, Janko Thyson wrote: On 10.06.2011 13:18, Prof Brian Ripley wrote: On Fri, 10 Jun 2011, Janko Thyson wrote: Dear list, I've been trying to get gWidgets

Re: [Rd] warning: assignment discards qualifiers from pointer target type

2011-06-08 Thread Prof Brian Ripley
On Tue, 7 Jun 2011, Duncan Murdoch wrote: On 07/06/2011 9:08 AM, oliver wrote: Hello, following an advice here from the list I looked into sources of other packages (xts) and found the TYPEOF() macro/function, which really is helpful. It is documented, of course, but actually better

Re: [Rd] Log file of building vignette in RCMD check

2011-06-06 Thread Prof Brian Ripley
On Mon, 6 Jun 2011, Uwe Ligges wrote: On 06.06.2011 15:30, Stefan McKinnon Høj-Edwards wrote: Hello, I am trying to run RCMD check on a package. It performs OK, with the exception of a single warning: * checking package vignettes in 'inst/doc' ... WARNING Package vignette(s) without

Re: [Rd] Exiting R Gracefully

2011-06-01 Thread Prof Brian Ripley
On Thu, 2 Jun 2011, Dario Strbenac wrote: Hello, I thought I'd add this to the mailing list, in case it could be handled smoother in a future release of R. Impossible without a reliably reproducible example (see the posting guide). But it does look as if you have managed to corrupt R's

Re: [Rd] assignInNamespace and new bindings

2011-05-31 Thread Prof Brian Ripley
On Tue, 31 May 2011, Romain Francois wrote: Hello, assignInNamespace refuses to assign an object to a name that is not already used in the namespace. That's intentional, and as documented: ‘assignInNamespace’ and ‘fixInNamespace’ are invoked for their side effect of changing the

Re: [Rd] assignInNamespace and new bindings

2011-05-31 Thread Prof Brian Ripley
On Tue, 31 May 2011, Prof Brian Ripley wrote: On Tue, 31 May 2011, Romain Francois wrote: Hello, assignInNamespace refuses to assign an object to a name that is not already used in the namespace. That's intentional, and as documented: ‘assignInNamespace’ and ‘fixInNamespace

Re: [Rd] non-R package development

2011-05-21 Thread Prof Brian Ripley
On Sat, 21 May 2011, Spencer Graves wrote: p.s. I've used subversion successfully with LaTeX, R and Python. I tried it with MS Word *.rtf format and found it was next to impossible, because any conflict produced an indecipherable diff file comparison. .rtf is not a Word format, although it

Re: [Rd] raw connections: reading does not alter current position pointer

2011-05-12 Thread Prof Brian Ripley
I am not the author, but looking at the code shows that raw_read has a line missing compared to raw_write. It should work now in R-devel/R-patched. Thanks for the report. On Mon, 2 May 2011, William Dunlap wrote: Am I misunderstanding rawConnections here or are rawConnections not working

Re: [Rd] RCMD check fails on checkin installed package size

2011-05-11 Thread Prof Brian Ripley
On Wed, 11 May 2011, Stefan McKinnon Høj-Edwards wrote: Hi, When I run RCMD check on my package, I receive the following error: C:\R-packages\AnnotationFuncsRCMD check --no-vignettes AnnotationFuncs * using log directory 'C:/R-packages/AnnotationFuncs/AnnotationFuncs.Rcheck' * using R version

Re: [Rd] matrix multiplication speed R

2011-05-10 Thread Prof Brian Ripley
On Mon, 9 May 2011, Sharpie wrote: aftar wrote: Hi Can we use BLAS in R X64 for windows? Regards Aftar You are already using BLAS in R as R includes its own BLAS library. On Windows the 64-bit DLL is located at R_HOME\bin\x64\Rblas.dll. If you are asking about swapping that out for an

Re: [Rd] How to create vignette.pdf for R-2.13.0?

2011-05-01 Thread Prof Brian Ripley
On Sun, 1 May 2011, Duncan Murdoch wrote: On 11-05-01 4:10 PM, cstrato wrote: Dear Duncan, dear Uwe, Since I have installed both WinXP and OpenSUSE 11.3 on my Mac in a virtual machine, I have now done the following tests on all three architectures: 1, R CMD build xps: This creates

Re: [Rd] R CMD check and Suggests Packages

2011-04-29 Thread Prof Brian Ripley
On Fri, 29 Apr 2011, Dario Strbenac wrote: Hello, In my description file, I have an example data package in Suggests: that I've deleted from my library to test what the user who doesn't have it will experience. However, R CMD check won't even pass my package : * checking package

Re: [Rd] R CMD build processes inst/doc/Makefile only if there are vignette files?

2011-04-29 Thread Prof Brian Ripley
On Fri, 29 Apr 2011, Hervé Pagès wrote: On 11-03-30 01:55 AM, Prof Brian Ripley wrote: What R CMD build (and check) does is to call tools::buildVignettes. That has been true for a while, and buildVignettes() returns if no vignettes are found. The docs are out-of-date. My view is that you

Re: [Rd] GPLv2-only code in R?

2011-04-28 Thread Prof Brian Ripley
On Thu, 28 Apr 2011, Duncan Murdoch wrote: On 27/04/2011 12:55 PM, Brett Smith wrote: Hello, I'm sending this to R-devel under the guideline that the ensuing discussion would probably be unintelligible to people who aren't programmers. If that's not right, I apologize.

Re: [Rd] R CMD Sweave versus Sweave() on Windows

2011-04-21 Thread Prof Brian Ripley
On Thu, 21 Apr 2011, Pfaff, Bernhard Dr. wrote: Dear list subscriber, I am quite puzzled by the behaviour of processing Sweave files within an R session, i.e. Sweave(foo.Rnw) versus R CMD Sweave foo.Rnw In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT = TRUE' is obeyed

Re: [Rd] Make as.factor an S3 generic?

2011-04-20 Thread Prof Brian Ripley
Well, lots of functions are not generic. We do ask you to give a case for such changes ... where is it? On Wed, 20 Apr 2011, Martin Morgan wrote: as.factor / as.ordered is not written as a generic. This differs from as.numeric, as.matrix, and other as.*. The following seems to address this

Re: [Rd] R script in batch mode

2011-04-18 Thread Prof Brian Ripley
On Sun, 17 Apr 2011, jusce wrote: Hello All! I'm a new R user, with no much experience. I have a R script (downloaded from internet) which has user interaction using readline() function. So as I have to run it repeatdly (with some different options) I was planning to do it on a BATCH mode. Is

[Rd] Statonnector fails (was Re: R fails on Windows 2008 Server)

2011-04-18 Thread Prof Brian Ripley
This isn't 'R fails', it is 'StatConnector' fails. That project is nothing to do with this list, so please don't ask here for free consultancy on it (and fail to give any of the information asked for in our posting guide). On Mon, 18 Apr 2011, Shawna JOB wrote: Does anyone have any

Re: [Rd] help with eval()

2011-04-18 Thread Prof Brian Ripley
On Mon, 18 Apr 2011, Duncan Murdoch wrote: On 11-04-18 5:51 PM, Terry Therneau wrote: I've narrowed my scope problems with predict.coxph further. Here is a condensed example: fcall3- as.formula(time ~ age) dfun3- function(dcall) { fit- lm(dcall, data=lung, model=FALSE)

Re: [Rd] Inconsistency between rowMeans documentation and reality?

2011-04-11 Thread Prof Brian Ripley
I suspect you omitted some of the help page: As they are written for speed, they blur over some of the subtleties of ‘NaN’ and ‘NA’. So, given that (and that real NA is a specific NaN) I think it is perfectly reasonable to claim they are consistent with mean. On Tue, 5 Apr 2011, Gavin

Re: [Rd] Use keep.source for function in package with lazy loading

2011-04-10 Thread Prof Brian Ripley
-Original Message- From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Sent: Monday, April 04, 2011 3:41 PM To: Greg Snow Cc: R-devel@r-project.org Subject: Re: [Rd] Use keep.source for function in package with lazy loading On Mon, 4 Apr 2011, Greg Snow wrote: I have a function in one of my

Re: [Rd] Compression of largish expression array files in the DAAGbio/inst/doc directory?

2011-04-09 Thread Prof Brian Ripley
As far as I can see read.maimages is built on top of R's own file-reading facilties, and they all read compressed (but not zipped) files as from R 2.10.0. So simply use gzip -9 coral55?.spot and rename the files back to *.spot. If you need more compression, use xz -9e. (You can also do

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-08 Thread Prof Brian Ripley
On Fri, 8 Apr 2011, peter dalgaard wrote: (Resending with fewer recipients...) On Apr 8, 2011, at 07:09 , Hin-Tak Leung wrote: --- On Fri, 8/4/11, peter dalgaard pda...@gmail.com wrote: On Apr 7, 2011, at 23:57 , Hin-Tak Leung wrote: Oh, I am tracking both R and Matrix via git-svn and

Re: [Rd] Rtools and MinGW

2011-04-04 Thread Prof Brian Ripley
On Sun, 3 Apr 2011, Thomas Mang wrote: Hi, I have R version 2.8.1 and Rtools 28 installed (as you might guess, set up years ago). In Rtools the MinGW GCC 4.2 compiler toolset is included. For my regular C/C++ programs I have also installed, separately, the full MinGW bundle with the latest

Re: [Rd] Use keep.source for function in package with lazy loading

2011-04-04 Thread Prof Brian Ripley
On Mon, 4 Apr 2011, Greg Snow wrote: I have a function in one of my packages that I would like to print using the original source rather than the deparse of the function. The package uses lazy loading and the help page for library (under keep.source) says that keep.source does not apply to

Re: [Rd] R CMD build processes inst/doc/Makefile only if there are vignette files?

2011-03-30 Thread Prof Brian Ripley
What R CMD build (and check) does is to call tools::buildVignettes. That has been true for a while, and buildVignettes() returns if no vignettes are found. The docs are out-of-date. My view is that you are misusing inst/doc: it is intended *only* for files which are going to be installed and

Re: [Rd] Windows build not running on r-forge

2011-03-27 Thread Prof Brian Ripley
On Mon, 28 Mar 2011, S Ellison wrote: Please forgive any mis-post, and do feel free to point me to a more appropriate list if this isn't properly R-dev. I have a package on R-forge that shows correct linux and other *nix builds, but no windows build. The log for the patched version shows the

Re: [Rd] .Fortran successful, R locks up.

2011-03-26 Thread Prof Brian Ripley
You seem to have missed the force of the warning in 'Writing R Extensions'. If you include *any* Fortrann I/O in your package code, you are at risk from it interfering with C I/O, whether or not that Fortran I/O is called. On some platforms with gfortran, merely loading such a package's

Re: [Rd] Sweave: multiple graphic formats, e.g. win.metafile

2011-03-23 Thread Prof Brian Ripley
We are currently in the process of implementing PNG and JPEG for 2.13.0, and an extensible architecture is planned for 2.14.0. On Wed, 23 Mar 2011, Meyer, Sebastian wrote: Dear R devel, being constrained to a windows environment at work and having colleagues being accustomed to the

Re: [Rd] import question

2011-03-23 Thread Prof Brian Ripley
On Thu, 24 Mar 2011, Ben Bolker wrote: Ben Bolker bbolker at gmail.com writes: I have been struggling all day to import a particular function/method combination (ranef(), which extracts the random effects from a mixed model fit) from the nlme package into another package ... so far

Re: [Rd] R_HOME path getting munged in inst/doc/Makefile on Windows

2011-03-22 Thread Prof Brian Ripley
This is a bug in the package: you are required to quote paths in Makefiles, e.g. to allow for spaces in the path. And let's knock the issue of forward and backwards slashes on the head: they are equivalent on Windows. Despite your perjorative comments, the supplied value of R_HOME is valid.

Re: [Rd] texi2dvi / egrep issue shows (a.o.) up in R-alpha

2011-03-22 Thread Prof Brian Ripley
After some offline checks, another workaround is to set LC_COLLATE=C, and we'll arrange for tools::texi2dvi() to do that. On Tue, 22 Mar 2011, Tobias Verbeke wrote: On 03/22/2011 08:41 AM, Martin Maechler wrote: Tobias Verbeketobias.verb...@openanalytics.eu on Mon, 21 Mar 2011 23:45:33

Re: [Rd] Undefined symbol Rf_pythag while loading spatstat

2011-03-19 Thread Prof Brian Ripley
On Sat, 19 Mar 2011, Rainer Hurling wrote: Today I installed the newest R develepment branch R version 2.14.0 Under development (unstable) (2011-03-18 r54866) on FreeBSD 9.0-CURRENT (amd64). All seems fine so far. But that is very raw: testing on 2.13.0 alpha would be more useful at this

[Rd] Testing window for R 2.13.0

2011-03-18 Thread Prof Brian Ripley
We are now starting testing R 2.13.0/alpba/beta/RC and testing and feedback would be appreciated (whereas reports on problems immediately after release will try our patience). Sources are available at http://cran.r-project.org/src/base-prerelease/ Windows binaries at

Re: [Rd] fortran 90 underscore error

2011-03-15 Thread Prof Brian Ripley
We have no position about Fortran 90. We provide the means to specify an F90 compiler and note that its use is not portable as not all platforms have one. (A very few are still using gcc3 with g77.) This simply is not an R issue, and seems specific to your unstated platform (*PLEASE* do

Re: [Rd] Tinycore error in memCompress() in make check

2011-03-14 Thread Prof Brian Ripley
On Mon, 14 Mar 2011, Sigbert Klinke wrote: Hi, I get the same error as mentioned in http://r.789695.n4.nabble.com/error-in-memCompress-in-make-check-td3318922.html I try to compile R 2.12.2 under Tinycore 3.5.1 running in VirtualBox 4.0.4. Since first xz was not installed I must have used

Re: [Rd] par(ask=TRUE) in R CMD check?

2011-03-12 Thread Prof Brian Ripley
On Sat, 12 Mar 2011, Spencer Graves wrote: Hello: What happens in the auto-checks on R-Forge and CRAN with code using par(ask=TRUE)? Is this routine, or can it create problems? The fda package uses ask=TRUE to provide the user with a way to examine a group of plots. In the

Re: [Rd] hook for when R quits

2011-03-11 Thread Prof Brian Ripley
On Fri, 11 Mar 2011, Duncan Murdoch wrote: On 11/03/2011 1:37 PM, Michael Lawrence wrote: Thanks for the suggestion, but I don't think that R finalizes all of its objects when it quits. At least a simple test suggests that on Linux. Did you use onexit=TRUE? On Windows that appears to

Re: [Rd] How to disable R's crash prompt

2011-03-08 Thread Prof Brian Ripley
On Tue, 8 Mar 2011, wayne.zh...@barclayscapital.com wrote: Dear R devel, I have a C++ app that calls into embedded R to perform some analytic calculations. When my app encounters a segmentation fault, R always prints the following crash prompt and asks me to enter an action: *** caught

Re: [Rd] problem with building bitmapdll on Windows

2011-03-05 Thread Prof Brian Ripley
On Sat, 5 Mar 2011, Hodgess, Erin wrote: Dear R Development People: I was trying to build R-2.12.2 from source on a Windows XP machine. Doing the make all recommended works fine, but building the bitmap dll is a problem. It seems to be in the libpng directory. I got libpng-1.5.1, and

Re: [Rd] Fixing the HDF5 package: the on.exit mystery

2011-03-04 Thread Prof Brian Ripley
Looks like you should be using finalizers instead. See the RODBC package for an example of this. On Fri, 4 Mar 2011, H C Pumphrey wrote: Dear all, I'm trying to fix a subtle bug in the hdf5 package. This package provides an interfaces to the HDF5 library and hence allows one to load data

Re: [Rd] Small enhancement for CMD check

2011-03-02 Thread Prof Brian Ripley
On Mon, 28 Feb 2011, Prof Brian Ripley wrote: Unfortunately it would need a major rewrite, and either piping output through a pager (surely the standard Unix way to handle this) or redirecting to a file is the simplest way to do this. R CMD check calls a process to run .runPackageTestsR

Re: [Rd] changes in recent R-devel revisions?

2011-03-01 Thread Prof Brian Ripley
On Tue, 1 Mar 2011, Martin Morgan wrote: On 03/01/2011 03:19 PM, Benilton Carvalho wrote: Hi, I have a BioC infra-structure package that works fine (I can build, check and load it successfully) on revision r53950. The very same package fails on r54591 with the error below: Error in

Re: [Rd] file.rename(): Guaranteed to be complete or not at all?

2011-03-01 Thread Prof Brian Ripley
As the help says: This is subject to the limitations of the OS's corresponding system call: E.g. on Fedora 14 'man 2 rename' says, inter alia, 'If newpath already exists it will be atomically replaced (subject to a few conditions; see ERRORS below), so that there is no point at

Re: [Rd] Small enhancement for CMD check

2011-02-28 Thread Prof Brian Ripley
Unfortunately it would need a major rewrite, and either piping output through a pager (surely the standard Unix way to handle this) or redirecting to a file is the simplest way to do this. R CMD check calls a process to run .runPackageTestsR, which calls further processes to run each test and

Re: [Rd] min/max of a vector with NAs and NaNs

2011-02-27 Thread Prof Brian Ripley
On Wed, 23 Feb 2011, Hervé Pagès wrote: I get this (with R-2.12 and R-2.13, didn't try with earlier versions): max(c(NaN, NA)) [1] NA max(c(NA, NaN)) [1] NaN I get the same thing with min(). The fact that the result of 'max(x)' or 'min(x)' depends on the order of the elements in 'x' is

Re: [Rd] R CMD build error (RProtoBuf on windows)

2011-02-25 Thread Prof Brian Ripley
On Fri, 25 Feb 2011, Koert Kuipers wrote: 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

Re: [Rd] request for patch in drop1 (add.R)

2011-02-23 Thread Prof Brian Ripley
residuals() and $residuals are often very different: residuals() is generic, but even the default method is *not* simple extraction. Their values can be of different lengths: think about an lm fit with na.action = na.exclude. That is precisely the sort of thing the tests in add.R were

Re: [Rd] system(wait = FALSE)

2011-02-23 Thread Prof Brian Ripley
On Wed, 23 Feb 2011, Oliver Soong wrote: I'm having a very odd problem with system(wait = FALSE). I'm not entirely sure whether it's a bug in R or a problem on our end. It's related to a post a month or so ago in R-help which got no responses, but I have a little more to add. Well, the

Re: [Rd] error in memCompress() in make check

2011-02-22 Thread Prof Brian Ripley
So it seems that there is something wrong with the liblzma library used on that machine. Did it use the version supplied with R or an external library (which is the default if one is found)? My first step would be to force the internal version via --with-system-xz=no. That error appears to

Re: [Rd] How to make a package with help pages in multiple languages?

2011-02-22 Thread Prof Brian Ripley
On Tue, 22 Feb 2011, Kjetil Halvorsen wrote: This question was adsked on R-help-es, and got no responses there. the OP asked for help pages in english and spanish. Any ideas how this should be done? I guess there really should be a solution for any number of languages. Rcmdr had English and

Re: [Rd] Error in tools::build Vignettes (dir = .)

2011-02-21 Thread Prof Brian Ripley
On Mon, 21 Feb 2011, Thomas Roth wrote: Dear List, Recently i changed my environment switching from 32bit XP to 64bit W7. I'm trying to rebuild my package with R 2.12.1 (2010-12-16) R CMD check -- everything ok, no warning, error nothing BUT R CMD build -- Error in tools::build Vignettes

Re: [Rd] Anomaly in [.terms

2011-02-21 Thread Prof Brian Ripley
From the NEWS for 2.13.0-to-be \item \code{drop.terms} and the \code{[} method for class \code{terms} no longer add back an intercept. (Reported by Niels Hansen.) so it has been fixed, just not rolled out yet. On Mon, 21 Feb 2011, Terry Therneau wrote: This arose when

Re: [Rd] Problem using F77_CALL(dgemm) in a package

2011-02-20 Thread Prof Brian Ripley
Look a close look at matprod in src/main/array in the R sources. Hint: it is the other dimensions you have wrong. And as BLAS is Fortran, counts do start at 1. On Sat, 19 Feb 2011, Jason Rudy wrote: Dear R-devel, I've written a numerical solver for SOCPs (second order cone programs) in R,

Re: [Rd] Problem using F77_CALL(dgemm) in a package

2011-02-20 Thread Prof Brian Ripley
for the help. Now that I have a functioning example I am well on my way to completing this project. -Jason On Sun, Feb 20, 2011 at 7:42 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: Look a close look at matprod in src/main/array in the R sources. Hint: it is the other dimensions you have wrong

Re: [Rd] debugger() fails if ... in function arguments

2011-02-18 Thread Prof Brian Ripley
On Fri, 18 Feb 2011, Charles Roosen wrote: Dear all, I'm having a problem with debugger() in both R 2.8.0 and R 2.12.0. Probably also versions in-between. But you are asked to report only on current R. I don't see it logged in the bug database, but it's hard for me to imagine that no-one

Re: [Rd] dotchart {graphics} 2.11.1 vs. 2.12.1 [followed up from Rhelp]

2011-02-18 Thread Prof Brian Ripley
On Tue, 1 Feb 2011, Joshua Wiley wrote: Dear List, With the R 2.12.0 addition of table methods for points(), dotchart() struggles with tables. Which of course it is not documented to accept, not even the base type of such tables, a 1-D array. So this is detecting a previously undetected

Re: [Rd] Rd2pdf error in R12.0

2011-02-17 Thread Prof Brian Ripley
I think you are decades in the future. We are on R 2.12.x in 2011. It seems that you don't have texi2dvi installed. Either install it (it may part of the TeX or texinfo distributions) or set options(texi2dvi='') (see ?tools::texi2dvi and ?EnvVar). 'Tis also discussed in the R-admin

Re: [Rd] Ignoring .Rprofile when installing a package

2011-02-16 Thread Prof Brian Ripley
The most obvious answer is not to do that. You have not used the standard mechanism to to do that (which should work here as R CMD INSTALL overrides that one). It's all in ?Startup (look for R_DEFAULT_PACKAGES). The simplest way to ignore ~/.Rprofile is to set R_PROFILE_USER to something

Re: [Rd] CRAN package sizes

2011-02-15 Thread Prof Brian Ripley
eventually. But a package would retrofit it to eariier versions of R. Thanks! Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Feb 13, 2011 at 6:30 AM, Prof Brian Ripley

[Rd] CRAN package sizes

2011-02-13 Thread Prof Brian Ripley
Robin Hankin's post reminded me to post about the following recent addition to 'Writing R Extensions', in the section on 'Submitting a package to CRAN' Ensure that the package sources are not unnecessarily large. ... As a general rule, doc directories should not exceed 5Mb, and where

Re: [Rd] R limits documented?

2011-02-12 Thread Prof Brian Ripley
On Sat, 12 Feb 2011, Uwe Ligges wrote: I think it is easiest to point people to the manual R Internals for questions on the size of integers, pointers etc. But ?Memory-limits is a good start. The messages below (which were not from a current version of R with that call!) come from

Re: [Rd] R project testers - how to help out

2011-02-11 Thread Prof Brian Ripley
We have a 4-week alpha/beta/RC period every 6 months for testing before a 2.x.0 release. This is announced here, and we get very little response. I expect the testing window for R 2.13.0 to be Mar-Apr. That said, we do quite extensive testing on the main platforms (ix86 and x86_64 Linux,

Re: [Rd] Problem installing MCMCpack on SPARC Solaris 10

2011-02-10 Thread Prof Brian Ripley
On Thu, 10 Feb 2011, Prof Brian Ripley wrote: There are lots of problems with MCMCpack's C++: the only way (short of a major rewrite) that you will get it to compile on Solaris is to use g++ (and even that needs corrections). The maintainers seem deaf to reports of the issues. And please

Re: [Rd] BLAS optimization by CUBLAS

2011-02-10 Thread Prof Brian Ripley
On Thu, 10 Feb 2011, Юрий Посохов wrote: Dear colleagues! In early 2009 there was a discussion about fast BLAS library initiated by Sachin. He reported a faster BLAS library made by Nvidia CUBLAS library. Uwe Ligges showed an interest for placing the optimized rblas.dll into windows/contrib

<    1   2   3   4   5   6   7   8   9   10   >