[Rd] use() might take a list of packages

2011-11-11 Thread Timothy Bates
I heard that a function called use() had been mooted as being more intuitively named than library() If so, it might be handy if this worked use(c(MASS,car”)) currently this fails… library(c(MASS,car)) __ R-devel@r-project.org mailing list

Re: [Rd] Question on parsing R code from C

2011-11-11 Thread KR
First of all thanks a lot to you both for all the replies, they have been of great help to me! I got the basic embedding running, however I still have some issues to solve in order to complete the interface to R I am working on: 1. I initialize with Rf_initEmbeddR(). - Is there a way to have

Re: [Rd] use() might take a list of packages

2011-11-11 Thread Keith Jewell
Timothy Bates timothy.c.ba...@gmail.com wrote in message news:1b5e1d00-397b-429b-b20c-0fba06084...@gmail.com... I heard that a function called use() had been mooted as being more intuitively named than library() If so, it might be handy if this worked use(c(MASS,car”)) currently this fails…

Re: [Rd] Question on parsing R code from C

2011-11-11 Thread Simon Urbanek
On Nov 10, 2011, at 6:24 PM, KR wrote: First of all thanks a lot to you both for all the replies, they have been of great help to me! I got the basic embedding running, however I still have some issues to solve in order to complete the interface to R I am working on: 1. I initialize

Re: [Rd] Question on parsing R code from C

2011-11-11 Thread Simon Urbanek
On Nov 11, 2011, at 10:08 AM, Simon Urbanek wrote: On Nov 10, 2011, at 6:24 PM, KR wrote: First of all thanks a lot to you both for all the replies, they have been of great help to me! I got the basic embedding running, however I still have some issues to solve in order to

[Rd] One step way to create data frame with variable variable names?

2011-11-11 Thread Paul Johnson
Suppose plotx - someName modx - otherName plotxRange - c(10,20) modxVals - c(1,2,3) It often happens I want to create a dataframe or object with plotx or modx as the variable names. But can't understand syntax to do that. I can get this done in 2 steps, creating the data frame and then

Re: [Rd] One step way to create data frame with variable variable names?

2011-11-11 Thread Gabor Grothendieck
On Fri, Nov 11, 2011 at 10:25 AM, Paul Johnson pauljoh...@gmail.com wrote: Suppose plotx - someName modx - otherName plotxRange - c(10,20) modxVals - c(1,2,3) It often happens I want to create a dataframe or object with plotx or modx as the variable names.  But can't understand syntax to

Re: [Rd] One step way to create data frame with variable variable names?

2011-11-11 Thread William Dunlap
plotx - someName modx - otherName data.frame( structure(list(c(1, 2, 3, 4)), names=plotx), structure(list(c(4, 4, 4, 4)), names=modx)) someName otherName 11 4 22 4 33 4 44 4 (I think this is more of an R-help question.) Bill

[Rd] Use of Matrix within packages in R-2.14.0

2011-11-11 Thread Bryan W. Lewis
Dear R-devel readers: I am really stuck trying resolving an issue with the use of the Matrix in one of my packages, irlba, with R-2.14.0. When I use crossprod with at least one sparse argument in the packaged code I receive the error: Error in crossprod(x, y) : requires numeric/complex

Re: [Rd] Use of Matrix within packages in R-2.14.0

2011-11-11 Thread Douglas Bates
On Nov 11, 2011 6:13 PM, Bryan W. Lewis ble...@illposed.net wrote: Dear R-devel readers: I am really stuck trying resolving an issue with the use of the Matrix in one of my packages, irlba, with R-2.14.0. When I use crossprod with at least one sparse argument in the packaged code I receive