[R] Pb with R.matlab
Hello, I have problems running the R.matlab package. I work with R 2.3.1, under windows (using the Rgui). It seems that, even after loading the package, the "simple" functions such as writeMat() or readMat() are not recognized. For example, the following script leads to an error: > install.packages("R.matlab") --- Please select a CRAN mirror for use in this session --- essai de l'URL 'http://cran.miroir-francais.fr/bin/windows/contrib/2.3/R.matlab_1.1.2.zip' Content type 'application/zip' length 177859 bytes URL ouverte downloaded 173Kb package 'R.matlab' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents and Settings\Arthur Leblois\Local Settings\Temp\RtmpPyR7qb\downloaded_packages updating HTML package descriptions > A <- matrix(1:27, ncol=3) > B <- as.matrix(1:10) > writeMat("matrix.mat", A=A, B=B) Erreur : impossible de trouver la fonction "writeMat" (the last line means, in french: "Error: function "writeMat" not found") If anyone has an idea what is happening and why it doesn't work, please let me know. Arthur Leblois __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Pb with R.matlab
Hi you probably installed (downloaded and unpacked) a package but you forgot to load it to R and therefore R does not know that you want to use it. library(R.matlab) see ?library and R-intro.html HTH Petr On 22 Dec 2006 at 11:17, Arthur Leblois wrote: Date sent: Fri, 22 Dec 2006 11:17:07 +0100 (MET) From: Arthur Leblois <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject: [R] Pb with R.matlab > > Hello, > > I have problems running the R.matlab package. I work with R 2.3.1, > under windows (using the Rgui). It seems that, even after loading the > package, the "simple" functions such as writeMat() or readMat() are > not recognized. > > For example, the following script leads to an error: > > > install.packages("R.matlab") > --- Please select a CRAN mirror for use in this session --- > essai de l'URL > 'http://cran.miroir-francais.fr/bin/windows/contrib/2.3/R.matlab_1.1.2 > .zip' Content type 'application/zip' length 177859 bytes URL ouverte > downloaded 173Kb > > package 'R.matlab' successfully unpacked and MD5 sums checked > > The downloaded packages are in > C:\Documents and Settings\Arthur Leblois\Local > Settings\Temp\RtmpPyR7qb\downloaded_packages > updating HTML package descriptions > > > A <- matrix(1:27, ncol=3) > > B <- as.matrix(1:10) > > writeMat("matrix.mat", A=A, B=B) > Erreur : impossible de trouver la fonction "writeMat" > > > (the last line means, in french: "Error: function "writeMat" not > found") > > If anyone has an idea what is happening and why it doesn't work, > please let me know. > > Arthur Leblois > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, > minimal, self-contained, reproducible code. Petr Pikal [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Pb with R.matlab
Thank you. This was a mistake from me, I actually did not load the package. Sorry for this! Arthur On Fri, 22 Dec 2006, Petr Pikal wrote: > Hi > > you probably installed (downloaded and unpacked) a package but you > forgot to load it to R and therefore R does not know that you want to > use it. > > library(R.matlab) > > see > ?library > and R-intro.html > > HTH > Petr > > On 22 Dec 2006 at 11:17, Arthur Leblois wrote: > > Date sent:Fri, 22 Dec 2006 11:17:07 +0100 (MET) > From: Arthur Leblois <[EMAIL PROTECTED]> > To: r-help@stat.math.ethz.ch > Subject: [R] Pb with R.matlab > >> >> Hello, >> >> I have problems running the R.matlab package. I work with R 2.3.1, >> under windows (using the Rgui). It seems that, even after loading the >> package, the "simple" functions such as writeMat() or readMat() are >> not recognized. >> >> For example, the following script leads to an error: >> >>> install.packages("R.matlab") >> --- Please select a CRAN mirror for use in this session --- >> essai de l'URL >> 'http://cran.miroir-francais.fr/bin/windows/contrib/2.3/R.matlab_1.1.2 >> .zip' Content type 'application/zip' length 177859 bytes URL ouverte >> downloaded 173Kb >> >> package 'R.matlab' successfully unpacked and MD5 sums checked >> >> The downloaded packages are in >> C:\Documents and Settings\Arthur Leblois\Local >> Settings\Temp\RtmpPyR7qb\downloaded_packages >> updating HTML package descriptions >> >>> A <- matrix(1:27, ncol=3) >>> B <- as.matrix(1:10) >>> writeMat("matrix.mat", A=A, B=B) >> Erreur : impossible de trouver la fonction "writeMat" >> >> >> (the last line means, in french: "Error: function "writeMat" not >> found") >> >> If anyone has an idea what is happening and why it doesn't work, >> please let me know. >> >> Arthur Leblois >> >> __ >> R-help@stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html and provide commented, >> minimal, self-contained, reproducible code. > > Petr Pikal > [EMAIL PROTECTED] > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Pb with R.matlab
Hello Arthur, Load the package first before using functions: > library(R.matlab) Regards, François -Message d'origine- De : Arthur Leblois [mailto:[EMAIL PROTECTED] Envoyé : vendredi 22 décembre 2006 11:17 À : r-help@stat.math.ethz.ch Objet : [R] Pb with R.matlab Hello, I have problems running the R.matlab package. I work with R 2.3.1, under windows (using the Rgui). It seems that, even after loading the package, the "simple" functions such as writeMat() or readMat() are not recognized. For example, the following script leads to an error: > install.packages("R.matlab") --- Please select a CRAN mirror for use in this session --- essai de l'URL 'http://cran.miroir-francais.fr/bin/windows/contrib/2.3/R.matlab_1.1.2.zip' Content type 'application/zip' length 177859 bytes URL ouverte downloaded 173Kb package 'R.matlab' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents and Settings\Arthur Leblois\Local Settings\Temp\RtmpPyR7qb\downloaded_packages updating HTML package descriptions > A <- matrix(1:27, ncol=3) > B <- as.matrix(1:10) > writeMat("matrix.mat", A=A, B=B) Erreur : impossible de trouver la fonction "writeMat" (the last line means, in french: "Error: function "writeMat" not found") If anyone has an idea what is happening and why it doesn't work, please let me know. Arthur Leblois __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.