Re: [Rd] Fix for incorrect use of restrict in xz third party code

2010-02-19 Thread Prof Brian Ripley
On Sat, 20 Feb 2010, Olaf Mersmann wrote: Hello, the included XZ Utils source code contains an incorrect use of the restrict keyword. This leads to data corruption under certain circumstances. For a short discussion of the problem see http://sourceforge.net/projects/lzmautils/forums/forum/708

Re: [Rd] R_LIBS_USER bugs

2010-02-19 Thread Jens Elkner
On Wed, Feb 17, 2010 at 07:49:20AM -0800, Seth Falcon wrote: Hi, > > On 2/16/10 10:31 AM, Jens Elkner wrote: > > Having currently a big problem with R 2.10.1 vanilla (Solaris): > > > > As soon as the R_LIBS_USER env var gets bigger than 1023 chars R > > completely ignores it and uses the default:

[Rd] how to create a SEXP which could be accessed in embedded R

2010-02-19 Thread yeahzx
Hi all, I am not familiar with writing R extensions. In a C program, I want to create a SEXP and access it in embedded R. How to let the embedded engine know there's a new vector? For example, after creating a SEXP, parsing 'ls()' in embedded R and then evaluating, STRSXP returned will contain

Re: [Rd] Where does install.R go when R gets compiled? Or, how to experiment with changes to install.R?

2010-02-19 Thread Paul Johnson
On Thu, Feb 18, 2010 at 2:20 PM, Jens Elkner wrote: > On Thu, Feb 18, 2010 at 11:33:14AM -0600, Paul Johnson wrote: >> I'm pursuing an experiment to make RPM files for R packages >> on-the-fly. Any time I install an R package successfully, I want to >> wrap up those files in an RPM.   Basically, t

[Rd] Fix for incorrect use of restrict in xz third party code

2010-02-19 Thread Olaf Mersmann
Hello, the included XZ Utils source code contains an incorrect use of the restrict keyword. This leads to data corruption under certain circumstances. For a short discussion of the problem see http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/3306733 This was fixed in the XZ

[Rd] Small documentation fix for [.data.frame

2010-02-19 Thread Olaf Mersmann
Hello, in the manual page for [.data.frame it reads: ... There is a method for replacement which checks \code{value} for the corrupt number of row, and replicates it if necessary. ... This should probably read ... There is a method for replacement which checks \code{value} for the corre

[Rd] sample on data.frame

2010-02-19 Thread Stavros Macrakis
Currently, sample of a data.frame is a sample of the columns: e.g. sample(data.frame(a=1,b=2:3,c=4),2) => data.frame(b=2:3,c=c(4,4)) I'd have thought it would be much more common to want a sample of the rows. It's easy enough to define an appropriate function for this: sample.data.frame <- func

Re: [Rd] R CMD check: OK in LINUX. Crashes in Windows!

2010-02-19 Thread Uwe Ligges
Hard to say anything if we do not see any details from your package, but very likely you just had some luck under Ubuntu not to see any crashes... Uwe Ligges On 18.02.2010 18:12, rt wrote: Hi, I have followed the recommended steps for creating a package (rctest). As of now, my goal is simpl

[Rd] expression(pi) produces not-equal symbol in X11 plot

2010-02-19 Thread Perry de Valpine
On R 2.10.1 on OS X (10.6.2) using an X11() device, plot(1:10, 1:10, main = expression(pi)) makes a not-equal symbol instead of a pi symbol. Other Greek letters (including capital Pi) seem to work. On a quartz device the pi symbol is displayed correctly. I don't know if the issue is on the R si

Re: [Rd] Building R fails

2010-02-19 Thread Göran Broström
I found a hack to avoid this bug(?): My personal .Rprofile file loads 'survival'. The hack is to remove/rename the file. Another hack is to log in (su -) as root (sudo -s doesn't help). This behaviour is also present when I run 'update.packages', even if I start R by 'sudo R --vanilla'! I hav

[Rd] pchisq accuracy (PR#14216)

2010-02-19 Thread Jerry . Lewis
Full_Name: Jerry W. Lewis Version: 2.10.1 OS: Windows XP Professional Submission from: (NULL) (166.186.168.21) Since pchisq(x,df,ncp,lower.tail,TRUE) is calculated as log(pchisq(x,df,ncp,lower.tail)) it looses accuracy when pchisq(x,df,ncp,lower.tail) is near 1. Accuracy can be maintained in

[Rd] Error in coding for splinefun(method = "monoH.FC") (PR#14215)

2010-02-19 Thread t . heaton
Full_Name: Tim Heaton Version: 2.8.1 OS: linux-gnu Submission from: (NULL) (143.167.4.162) Hi, In my version of R, the stats package splinefun code for fitting a Fritsch and Carlson monotonic spline does not guarantee a monotonic result. If two adjoining sections both have over/undershoot the w

[Rd] Sweave in PNG: driver online

2010-02-19 Thread Jombart, Thibaut
Dear R addicts, Back in 2006, I posted the proposition for a tweak of the Sweave driver so that PNG figures can be produced instead of eps/pdf : https://stat.ethz.ch/pipermail/r-help/2006-March/102122.html The amount of code modified is tiny (it was designed to induce minimal changes to the of

[Rd] Building R fails

2010-02-19 Thread Göran Broström
I'm trying to build R-patched_2010-02-17.tar.gz, 'make' ends with make[2]: Entering directory `/usr/local/src/R/R-patched/src/library/Recommended' begin installing recommended package boot Loading required package: survival Error: package 'survival' could not be loaded In addition: Warning mess

Re: [Rd] pictex

2010-02-19 Thread Prof Brian Ripley
Thank you for the comments. That driver dates from 1997 or so, and I believe we failed to contact the author several years ago, but a later email address is in the THANKS file. It is really present for historical reasons, and other things change -- so I have added LaTeX package graphics (alth