Hi all,
There is a compatibility issue between the package 'lme4' and my package
'kml'. I define the "[" operator. It works just fine in my package (1). If I
try to use the lme4 package, then it does no longer work (2). Moreover, it
has some kind of strange behavior (3). Do you know what is wrong?
Hi the list,
I am the maintainer of the package kml. I quite often receive some email
about a specific bug. The answer is always the same, I tell people to remove
the package Matrix, and then kml works fine.
I wonder what my code is not compatible with the Matrix package. Here is a
(simplified) v
Hi all,
I am trying to understand Writing R Extension...
Section 1.1.5, data: I include two datasets in a package, one using 'save',
the other using 'write.table':
--- 8<
myData1 <- data.frame(x=1:10)
write.table(myData1,file="myData1.txt")
myData2 <- data.frame(x=2:10)
save(myData2,file="myD
So it IS curently accepted, but may NOT be in the futur. Thanks for your
answer.
So I guess that using
--- 8< -
%1:
%%%2: Section 1
%%%3
...
--- 8< -
is correct, isn't it?
Christophe
--
View this message in context:
http://r.789695.n4.nabble.com/Comments-in-
Hi,
I am not that familiar with the DCF... But R seems to accept # quite easely.
More precisely:
Before posting my message, I try it on a small package: R CMD check or R CMD
INSTALL did not make any warning or error (whereas they do if I use '#'
alone).
After reading your response, I dig a bit
Hi all,
Since R 3.0.0, the '#' does no longuer works for comments.
But as noticed above, comments can be introduce by 'anyWord:' or
'myComment;' or 'toto:'.
Since '#' can be used to name a field, we can also used '#:' or '###:' (or
even '%:' for LaTeX's fans).
So '#:' is a new possible way for a
I works, thank you very much.
--
View this message in context:
http://r.789695.n4.nabble.com/Define-S4-methods-for-plot-tp4020750p4023508.html
Sent from the R devel mailing list archive at Nabble.com.
__
R-devel@r-project.org mailing list
https://stat.
Hi the list
I am creating a package and I have a problem to define a S4 method for plot.
I define a class 'A' and a class 'B'. I want to define a function plot for
signature c(A,missing) and another method plot for signature c(A,B). My code
is the following :
In /package/R/ directory:
--- main.R -
Getting back to the original poster who may have been forgotten in all
this, alternatives are switching to Linux and using R-Forge with that
(if such a switch in platforms is feasible) or using googlecode
(that's the largest repository of R projects outside of CRAN with 237
R projects listed --
Full_Name: Christophe Genolini
Version: 2.8.1
OS: Windows XP
Submission from: (NULL) (82.225.59.146)
savePlot export "eps" graph that seems to be incorrect.
Trying to incorporate them in a LaTeX file, I get :
++
Cannot determine size of graphics in foo.eps (no BoundingBox)
Full_Name: Christophe Genolini
Version: 2.8.1, but also 2.9
OS: Windows XP
Submission from: (NULL) (82.225.59.146)
I am using matplot with the option lend="butt", but only the first line (the
black) is printed correctly :
> matplot(matrix(1:9,3),type="c",lwd=10,lty=1,lend="butt")
Gabor Grothen
"Charles C. Berry" <[EMAIL PROTECTED]> a écrit :
On Fri, 24 Oct 2008, Christophe Genolini wrote:
Hi the list,
unlist respect the all the atomic type except orderd (it change of
ordered into factor) :
### integer
class(unlist(list(1:5,1:3)))
#[1] "integer"
### numeric
class(unlist(list(1
Hi the list,
I guess I find an other bug (the first one is at the end off this mail)
in package.skeleton. It occurs when we give as code_file some file that
are not in the current directories.
If we give a single file to code_file (like code_file=3D"riri/fifi.R"),
it does not reconize fifi.R a
Hi the list,
I am using package.skeleton on a file that has a very classic name, but
package.skeleton detect it as a invalid name :
--- 8< ---
package.skeleton(name="packClassicBis",code_files="./packClassic/R/progClassic.R")
Création des répertoires...
Création de DESCRIPTION...
Création
n Mon, 12 May 2008 19:24:55 +0200,
cgenolin (c) wrote:
> Hi the devel list,
> I am using K means with a non standard distance. As far as I see, the
> function kmeans is able to deal with 4 differents algorithm, but not
> with a user define distance.
> In addition, kmeans
Hi the devel list,
I am using K means with a non standard distance. As far as I see, the
function kmeans is able to deal with 4 differents algorithm, but not
with a user define distance.
In addition, kmeans is not able to deal with missing value whereas
there is several solution that k-means
Do not change initialize!
As I sat, this is a toy example. In my real example, initialize does a
lot of things like calculation of quality indice (b is not the scare of
a, but B1, B2 and B3 are the the within matrix of A after imputation
with 3 differents methods), giving names to some matr
Hi the list,
I have some trouble using validity, intialize and the constructor. More
precisely, what should go where?
Here is a toy exemple (seams long, but the code is very simple):
I want to define an object with two slots a and b with the properties that
b will be either empty or the scare
> However, try this example with the corrected package.skeleton() as well.
I did, it is working
Thanks
Christophe
>
>
> John Chambers wrote:
>> Well, the workaround does not help much. The source files will be
>> copied to the new package, but they are not evaluated (because
>> package.skele
Hi again
I get an other error on an other file. More precisely,
package.skeleton("kmt2",code_files=c("function.r","partition.r","longData.r","imputation.r","clusterization.r"))
I put 5 files in code_files, everything seems to work fine, the
directory "kmt2" is created, but I get an message :
Hi the devel list
I am testing package.skeleton in R 2.7 (download today). I get an error
that I do not understand. I guess it is not an error from my code since
I have no probleme when I source it. So is it a error in
package.skeleton?
Here is my code :
--- 8< -- File essai.r --
>> hmm, I see 219 out 1378 CRAN packages having a 'tests'
>> subdirectory, so it seems you have been a bit unlucky. ;-)
>
>
>
> How unlucky exactly?
>
>
> > fisher.test(matrix(c(0,20,219,1159),2,2))
>
Hey, no, I desagree ! I random 10, the 10 first I take the ten first
package. So this in not ran
Martin Maechler <[EMAIL PROTECTED]> a écrit :
>> "CG" == Christophe Genolini <[EMAIL PROTECTED]>
>> on Mon, 31 Mar 2008 00:31:55 +0200 writes:
>
>>>
>>> Generally I find it's good to look at examples that work.
>>> For examples of packages using tests, look at source
>
Full_Name: Christophe Genolini
Version: 2.6.2
OS: Windows XP
Submission from: (NULL) (82.225.59.146)
*This is a mail that I post on r-help: *
>> It seems that the dumpMethod does not work.
setClass("A",representation(a="numeric"))
setMethod("plot","A",function(x,y,...){cat("A\n")})
dumpMeth
Hi the list.
Is there a bug in mmlcr package ?
The following code does not compile:
mmlcrTest <- function(dataW){
dataL <-
reshape(dataW,idvar="id",timevar="T",varying=list("T0","T1","T2"),direction="long",v.names="score")
resultR <- mmlcr(outer= ~ 1 | id,
components = lis
25 matches
Mail list logo