Re: [Rd] .Call and data frames

2006-06-21 Thread Prof Brian Ripley
On Wed, 21 Jun 2006, Kasper Daniel Hansen wrote: > While I do not know how to handle this on the C level, I know that > you do not have characters in data frames, everything is factors > instead. Not so. The default in data.frame() is to convert character vector to factors, but there are many w

Re: [Rd] .Call and data frames

2006-06-21 Thread Kasper Daniel Hansen
While I do not know how to handle this on the C level, I know that you do not have characters in data frames, everything is factors instead. Internally they are coded as a number of integer levels, with the levels having labels (which is the character you see). So eg (in R): > test <- dat

[Rd] .Call and data frames

2006-06-21 Thread Dominick Samperi
Hello, I'm trying to fetch a data frame through the C API, and have no problem doing this when all columns are numbers, but when there is a column of strings I have a problem. On the C-side the function looks like: SEXP myfunc(SEXP df), and it is called with a dataframe from the R side with: .Cal

[Rd] Suggestion for all.equal.factor

2006-06-21 Thread McGehee, Robert
R-Devel, all.equal.factor gives a warning message when comparing vectors of factors of different lengths. I suspect this to be unintentional as I believe tests of valid factors should be comparable without a warning. For example: > x1 <- as.factor(LETTERS) > x2 <- as.factor(LETTERS)[1:10] > all.eq

Re: [Rd] is.Rs_own_BLAS() ?

2006-06-21 Thread Prof Brian Ripley
On Wed, 21 Jun 2006, Martin Maechler wrote: > Does anyone see a nice portable way to detect --- from inside R --- > if R is using its own BLAS or not? > { And ideally, if not, can R find out which ``kind'' of > (optimized) BLAS it does run? } > > And the same for LAPACK ? > > One way of getting a

[Rd] is.Rs_own_BLAS() ?

2006-06-21 Thread Martin Maechler
Does anyone see a nice portable way to detect --- from inside R --- if R is using its own BLAS or not? { And ideally, if not, can R find out which ``kind'' of (optimized) BLAS it does run? } And the same for LAPACK ? One way of getting a partial answer seems to be Rs_own_LAPACK_and_BLAS <-

Re: [Rd] loading library from network share (PR#8982)

2006-06-21 Thread Prof Brian Ripley
On Wed, 21 Jun 2006, [EMAIL PROTECTED] wrote: > Thanks for the info. > > It's interesting that R can load the library using a network share naming > convention but that the library path has the "\" replaced with "/". I guess > it's too much to ask for R not to muck with the file name provided (fo

Re: [Rd] loading library from network share (PR#8982)

2006-06-21 Thread roy_kuraisa
Thanks for the info. It's interesting that R can load the library using a network share naming convention but that the library path has the "\" replaced with "/". I guess it's too much to ask for R not to muck with the file name provided (for a variety of reasons). My package works fine except

Re: [Rd] package compile error on RHEL x86_64 - FIXED

2006-06-21 Thread Dan Lipsitt
For the record: The error below has been resolved. As Professor Ripley said, it was a compiler problem. Upgrading to a more recent gcc rpm (gcc-3.4.5-2) and its dependencies made the errors go away. Thanks, Dan On 6/14/06, Dan Lipsitt <[EMAIL PROTECTED]> wrote: > I am unable to install the gmp pa

[Rd] Error Condition Re: Invalid request

2006-06-21 Thread listproc
>This is a multi-part message in MIME format. Unrecognized request THIS Report any problems to '[EMAIL PROTECTED]'. For a list of the available requests send a message to [EMAIL PROTECTED] with a body consisting of nothing but the word HELP PS: Any subsequent requests that you might have submitt

Re: [Rd] loading library from network share (PR#8982)

2006-06-21 Thread ripley
This is not supported: network shares are a Windows 'feature' and not part of R's conception of file paths. The specific issue here is dirname(), but it is widespread. You can always map shares to network drives, and that is common practice everywhere I have been which has extensive Windows ne

[Rd] R-2.3.1 MacOSX segfault (PR#9014)

2006-06-21 Thread diez
Full_Name: Diego Diez Version: 2.3.1 OS: Mac OSX 10.4.6 Submission from: (NULL) (133.103.101.222) When running R in a X11 terminal, and trying to download a file with a wrong url with method "internal", R segfaults. This does not happen when using R.app with same method (??) or using "wget" metho