Hello I need to run an r-file that works on Windows on MAC. The first lines of the file are: library(R.matlab) library(Rcompression) Somehow I cannot find where Rcompression is. Am I missing something? Many thanks Ed
On Jul 12, 2011, at 8:40 PM, Eduardo M. A. M. Mendes wrote:> Hello > > I need to run an r-file that works on Windows on MAC.Does that mean you are using a virtual box to run Windoze on Mac hardware?> The first lines of the file are: > > library(R.matlab) > library(Rcompression) > > Somehow I cannot find where Rcompression is. Am I missing something?Learn to search... _first_ hit on google searhc for rcompression is: http://www.omegahat.org/Rcompression/> > Many thanks > > Ed-- David Winsemius, MD West Hartford, CT
Hi. On Tue, Jul 12, 2011 at 5:40 PM, Eduardo M. A. M. Mendes <emammendes at gmail.com> wrote:> Hello > > I need to run an r-file that works on Windows on MAC. ? The first lines of the file are: > > library(R.matlab) > library(Rcompression)Are you sure you need Rcompression? If this is about reading (Matlab) MAT files, the readMat() function of R.matlab will only need Rcompression if the MAT files are compressed, which they may not be. Also, if readMat() needs the Rcompression package, it will load it automatically, i.e. you do not have to load it explicitly as above. It may or may not be that the person who wrote your script added "library(Rcompression)" because s/he knows that it is needed, but it could also be added by mistake. Thus, try without that line and if Rcompression is really needed, R.matlab/readMat() will throw an error telling you so. /Henrik> > Somehow I cannot find where Rcompression is. ?Am I missing something? > > Many thanks > > Ed > > ______________________________________________ > R-help at r-project.org 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. >
Hi there Yes, I am sure. I managed to compile rcompression and the package is now available. Many thanks Ed On Jul 24, 2011, at 7:17 PM, Henrik Bengtsson wrote:> Hi. > > On Tue, Jul 12, 2011 at 5:40 PM, Eduardo M. A. M. Mendes > <emammendes at gmail.com> wrote: >> Hello >> >> I need to run an r-file that works on Windows on MAC. The first lines of the file are: >> >> library(R.matlab) >> library(Rcompression) > > Are you sure you need Rcompression? If this is about reading (Matlab) > MAT files, the readMat() function of R.matlab will only need > Rcompression if the MAT files are compressed, which they may not be. > Also, if readMat() needs the Rcompression package, it will load it > automatically, i.e. you do not have to load it explicitly as above. > It may or may not be that the person who wrote your script added > "library(Rcompression)" because s/he knows that it is needed, but it > could also be added by mistake. Thus, try without that line and if > Rcompression is really needed, R.matlab/readMat() will throw an error > telling you so. > > /Henrik > >> >> Somehow I cannot find where Rcompression is. Am I missing something? >> >> Many thanks >> >> Ed >> >> ______________________________________________ >> R-help at r-project.org 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. >>