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)

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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to