Re: [Bioc-devel] How can I print a message on console with library("myPackage")?

2019-04-24 Thread Martin Morgan
Yes I strongly second Robert's suggestion. Also be sure that you are registered at https://support.bioconductor.org and that you enter your package name in the 'Watched tags' field of the user Profile, so that you are notified by email whenever a question is posted there. Martin On 4/24/19,

Re: [Bioc-devel] How can I print a message on console with library("myPackage")?

2019-04-24 Thread Robert M. Flight
Instead of putting the message in the startup, perhaps make use of the BugReports field in the package DESCRIPTION, and maybe use a GitHub issues page with a good template This way you avoid annoying your users with startup messages, for something that should be accessible in the DESCRIPTION

Re: [Bioc-devel] How can I print a message on console with library("myPackage")?

2019-04-24 Thread Arman Shahrisa
Thank you very much for your kind help. That fixed my issue. Best regards, Arman From: Shepherd, Lori Sent: Wednesday, April 24, 2019 9:59:40 PM To: Arman Shahrisa; Martin Morgan; bioc-devel; szwj...@gmail.com Subject: Re: [Bioc-devel] How can I print a message

Re: [Bioc-devel] How can I print a message on console with library("myPackage")?

2019-04-24 Thread Shepherd, Lori
I assume your package is the cbaf package? Don't forget the new zzz.R file to the collate field in the DESCRIPTION Lori Shepherd Bioconductor Core Team Roswell Park Cancer Institute Department of Biostatistics & Bioinformatics Elm & Carlton Streets Buffalo, New York 14263

Re: [Bioc-devel] How can I print a message on console with library("myPackage")?

2019-04-24 Thread Arman Shahrisa
I really appreciate your kind answers. I created the zzz.R file in the same folder as the rest of my R files. I tried both .onAttach and .onLoad functions as follow: > .onAttach <- function(libname, pkgname){ >packageStartupMessage("Please send bug reports and suggestions to >

Re: [Bioc-devel] How can I print a message on console with library("myPackage")?

2019-04-23 Thread Martin Morgan
This is called the 'tragedy of the commons', where everyone seems something that looks good (screen real-estate to advertise their package) and so takes advantage of it. Once everyone does that, the 'commons' is completely destroyed by messages like the one you're trying to suppress. You can

Re: [Bioc-devel] How can I print a message on console with library("myPackage")?

2019-04-23 Thread 介非王
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 于2019年4月23日周二 下午3:04写道: > I’m the maintainer of package “cbaf”. I