Hi Arman, I only have a suggestion for your first question, have you tried .onLoad functions? R will call it when loading the package using library(). You can put your message function in .onLoad.
Best, Jiefei Arman Shahrisa <shahrisa.ar...@hotmail.com> 于2019年4月23日周二 下午3:04写道: > I’m the maintainer of package “cbaf”. I use roxygen2 for documentation. > > If I want a message to be printed when the user loads my package with > library(), what should I do? > > > I also have another question. When I load my package, a message is printed > in console: > > > Registered S3 method overwritten by 'R.oo': > > method from > > throw.default R.methodsS3 > > How can I prevent this? > > > > > > Best regards, > Arman > > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioc-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/bioc-devel > -- Jiefei Wang Room 2-501,Tangxuan,QilinGarden,NanshanDistrict,Shenzhen Guangdong,China Phone (+86)18312589584 szw...@gmail.com [[alternative HTML version deleted]] _______________________________________________ Bioc-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel