xia-lab / MetaboAnalystR

R package for MetaboAnalyst
Other
304 stars 153 forks source link

Error when running "OPLSR. Anal()" #252

Open ZhaFStar opened 1 year ago

ZhaFStar commented 1 year ago

Would you please help? When I run the "mSet<- OPLSR. Anal (mSet, reg=TRUE)" script in R(4.0.3), I get the following error :

Error in compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.Rc") : file '../../rscripts/MetaboAnalystR/R/stats_opls.Rc' does not exist

What happened and How can I solve it ?

hugs314 commented 1 year ago

hi, brother. this issue have been solved?

linlin0026 commented 1 year ago

I get the same issue

linlin0026 commented 1 year ago

Would you please help? When I run the "mSet<- OPLSR. Anal (mSet, reg=TRUE)" script in R(4.0.3), I get the following error :

Error in compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.Rc") : file '../../rscripts/MetaboAnalystR/R/stats_opls.Rc' does not exist

What happened and How can I solve it ?

Hi, may I ask how u deal with this problem ? Thanks

candidosobrinhosa commented 1 year ago

It seems there is a typo in chemometrics module ./R/stats_chemometrics.R

Where there are the lines:

LINE1523: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.Rc"); LINE1913: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.Rc");

it should be:

LINE1523: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.R"); LINE1913: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.R");

You can wait they release a fix or you might DIY:

  1. Download the lastest source code (tarball, .tar.gz)
  2. Edit the file at shown lines
  3. Manual reinstall from source
linlin0026 commented 1 year ago

It seems there is a typo in chemometrics module ./R/stats_chemometrics.R

Where there are the lines:

LINE1523: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.Rc"); LINE1913: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.Rc");

it should be:

LINE1523: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.R"); LINE1913: compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.R");

You can wait they release a fix or you might DIY:

  1. Download the lastest source code (tarball, .tar.gz)
  2. Edit the file at shown lines
  3. Manual reinstall from source

Thanks for the suggestion, I'll try to modify it right away and I tried _source(paste0(.libPaths()[1],"/MetaboAnalystR/R/stats_oplslocal.R")) ,as _if(!exists("performopls")) but, even if I got _> exists("performopls") [1] TRUE still _> mSet<-OPLSR.Anal(mSet, reg=TRUE) Error in compiler::loadcmp("../../rscripts/MetaboAnalystR/R/stats_opls.Rc") : file '../../rscripts/MetaboAnalystR/R/statsopls.Rc' does not exist