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
Dear all,
I have a package that passes R CMD check, and shows no problems when using all
its methods as declared in NAMESPACE. When this package is added to a bundle,
which already consists of 5 packages, the examples in the Rd pages thta call a
number of methods fail during the bundle check.
I think you want
else if (TYPEOF(colData) == STRSXP)
... instead.
I don't know if this will convert from factors to string's,
but somewhere it probably involves something like this:
PROTECT(colData = coerceVector(colData, STRSXP));
Dominick Samperi wrote:
Hello,
I'm trying to
Hin-Tak Leung wrote:
I think you want
else if (TYPEOF(colData) == STRSXP)
... instead.
I don't know if this will convert from factors to string's,
but somewhere it probably involves something like this:
PROTECT(colData = coerceVector(colData, STRSXP));
FWIW, a factor consists
Iago
There is a problem that bundle checking works slightly differently than
individual package checking in this regard. I think it has to do with
when the namespace gets registered, or something like that. As I recall,
the work around is to explicitely require the package in the test files
-Mensaje original-
De: Paul Gilbert [mailto:[EMAIL PROTECTED]
Enviado el: jue 22/06/2006 15:47
Para: Iago Mosqueira
CC: r-devel@r-project.org
Asunto: Re: [Rd] NAMESPACE and bundle
Iago
There is a problem that bundle checking works slightly differently than
individual package
Iago
I think your R code file needs an .onLoad function. Here is the
..onLoad from my dse1 package which is in the dse bundle, as is tframe,
along with comments which I had forgotten.
..onLoad - function(library, section) {
.DSEflags(list(COMPILED=TRUE, DUP=TRUE))
# next require is
On Jun 22, 2006, at 9:04 AM, Dominick Samperi wrote:
Thanks for the tips,
This seems to work:
First test for isReal and isInteger.
If they fail, assume character/factor, and
PROECT(colData = coerceVector(colData,INTSXP); // Not STRSXP
SEXP names = getAttrib(colData, R_LevelsSymbol);
//
[EMAIL PROTECTED] writes:
Full_Name: James Signorovitch
Version: 2.2.1
OS: WinXP
Submission from: (NULL) (134.174.182.203)
In the code below, fn1() and fn2() fail with the messages given in the
comments.
Strangely, fn2() fails for all data sets I've tried except for those with 100
On Thu, 22 Jun 2006, [EMAIL PROTECTED] wrote:
In the code below, fn1() and fn2() fail with the messages given in the
comments.
Strangely, fn2() fails for all data sets I've tried except for those with 100
rows.
snip
fn1 - function(model, data)
{
w - runif(nrow(data));
10 matches
Mail list logo