[R] Building S4-classes, documents

TEMPL Matthias Matthias.Templ at statistik.gv.at
Fri Nov 18 11:56:10 CET 2005


Hi Seth,

Thank you very much! (and thanks to Matthias Kohl and Sean Davis)
My first problems in building a minimal S4-class package are solved with
the help of your hints.
Especially making R CMD INSTALL before trying R CMD check was a very
good idea!

Matthias


> Hi Matthias,
> 
> On 17 Nov 2005, Matthias.Templ at statistik.gv.at wrote:
> > Hello,
> >
> > I have some troubles when building S4-class packages.
> >
> > All my (S4-)code works well (without building a package).
> >
> > When building a package, in the R prompt after checking S3 
> > generic/method consistency Following error occurs: Fehler: 
> Kann R Kode 
> > in Packet 'AddNoise' nicht laden (~Error: Can not load R code from 
> > package 'AddNoise') (and there are some warnings after the
> > error)
> 
> I don't have documentation to recommend other than what you 
> mentioned.  However, a few things to look into:
> 
> 1. If you have your R code in multiple files, you may need to use the
>    DESCRIPTION file's Collate field to control the loading order.
>    Basically, you want: Class defintions, generics, methods, other.
>
> 2. Put methods and any other packages you depend on in Depends.
> 
> 3. Add SaveImage: yes.
> 
> Also, make sure R CMD INSTALL yourPackage/ works before 
> trying R CMD check yourPackage.
> 
> + seth
> 
> ______________________________________________
> R-help at 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
>




More information about the R-help mailing list