[Rd] Help on Making R Packages
Uwe Ligges
ligges at statistik.tu-dortmund.de
Sun Mar 1 10:41:06 CET 2009
Romina Rengel wrote:
> I'm trying to make a R package for a work in university. It´s my first time
> and i made some modifications on Pam algorithm that is included on cluster
> package.
> So before run Rcmd build command i made the next things:
> 1- I modified pam.c and cluster.h code. I added two new arguments on pam.
> 2- I modified pam.q, i added there my two new arguments.
> 4- I create all the necessary subdirectories (man, data, src, R, etc) and
> files necessaries. I put on c:\Cluster2
> 5- I run on cmd: Rcmd build --force --binary c:/cluster2
> And the package was created (file .zip)
> 6- I installed and load my package on R
>
> After this i tried to test with Ruspini dataset
> so I write something like:
>
> x <-ruspini
> dd <- pam(x,3)
Do you have an adapted R function in your package?
I'd suggest to rename your function slightly (as well as the C API) in
order to avoid conflicts with the original pam(), particularly in case
you need the cluster package to be loaded.
Uwe Ligges
> But an error happens, function pam not recognize my 2 new arguments. It's
> like function PAM on R is not linked to my pam code on C++.
> I really need if someone can help me and tell me what i´m doing wrong.
>
> Thank you
>
> Romina
>
> [[alternative HTML version deleted]]
>
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
More information about the R-devel
mailing list