Hi guys, I'm wondering if any of you have met this warning message : Warning: replacing previous import 'SummarizedExperiment::start' by 'stats::start' when loading 'singscore' Warning: replacing previous import 'SummarizedExperiment::end' by 'stats::end' when loading 'singscore' I have import SummarizedExperiment in my DESCRIPTION and NAMESPACE. The package passed R CMD Check and BiocCheck without warnings. But the build report returned the warnings above. Link to the report: http://bioconductor.org/spb_reports/singscore_buildreport_20180414041637.html I'm not sure why this is happening. Any help will be appreciated. Thanks! Regards, Ruqian
[Bioc-devel] WARNING regarding imporing SummarizedExperiment
4 messages · Ruqian Lyu, Martin Morgan
Hi guys, I have identified the problem. It's the packages I imported have same function name, so the previous functions get overwritten. Thanks Ruqian On Sun, Apr 15, 2018 at 10:18 AM, Ruqian Lyu <ruqianl at student.unimelb.edu.au
wrote:
Hi guys, I'm wondering if any of you have met this warning message : Warning: replacing previous import 'SummarizedExperiment::start' by 'stats::start' when loading 'singscore' Warning: replacing previous import 'SummarizedExperiment::end' by 'stats::end' when loading 'singscore' I have import SummarizedExperiment in my DESCRIPTION and NAMESPACE. The package passed R CMD Check and BiocCheck without warnings. But the build report returned the warnings above. Link to the report: http://bioconductor.org/spb_reports/singscore_buildreport_ 20180414041637.html I'm not sure why this is happening. Any help will be appreciated. Thanks! Regards, Ruqian
The solution is, in the NAMESPACE, to import only those functions used
importFrom(SummarizedExperiment, "start", "end")
importFrom(stats, "mean")
or to import everything but
importFrom(stats, except = c(start, end))
or to explicitly resolve symbols in the code and not mention them in the
NAMESPACE file.
SummarizedExperiment::start(...)
Each of these styles is supported by roxygen2.
Martin
On 04/14/2018 08:37 PM, Ruqian Lyu wrote:
Hi guys, I have identified the problem. It's the packages I imported have same function name, so the previous functions get overwritten. Thanks Ruqian On Sun, Apr 15, 2018 at 10:18 AM, Ruqian Lyu <ruqianl at student.unimelb.edu.au
wrote:
Hi guys, I'm wondering if any of you have met this warning message : Warning: replacing previous import 'SummarizedExperiment::start' by 'stats::start' when loading 'singscore' Warning: replacing previous import 'SummarizedExperiment::end' by 'stats::end' when loading 'singscore' I have import SummarizedExperiment in my DESCRIPTION and NAMESPACE. The package passed R CMD Check and BiocCheck without warnings. But the build report returned the warnings above. Link to the report: http://bioconductor.org/spb_reports/singscore_buildreport_ 20180414041637.html I'm not sure why this is happening. Any help will be appreciated. Thanks! Regards, Ruqian
[[alternative HTML version deleted]]
_______________________________________________ Bioc-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel
This email message may contain legally privileged and/or...{{dropped:2}}
Thanks, Martin! Cheers, Ruqian On Sun, Apr 15, 2018 at 9:06 PM, Martin Morgan <
martin.morgan at roswellpark.org> wrote:
The solution is, in the NAMESPACE, to import only those functions used
importFrom(SummarizedExperiment, "start", "end")
importFrom(stats, "mean")
or to import everything but
importFrom(stats, except = c(start, end))
or to explicitly resolve symbols in the code and not mention them in the
NAMESPACE file.
SummarizedExperiment::start(...)
Each of these styles is supported by roxygen2.
Martin
On 04/14/2018 08:37 PM, Ruqian Lyu wrote:
Hi guys, I have identified the problem. It's the packages I imported have same function name, so the previous functions get overwritten. Thanks Ruqian On Sun, Apr 15, 2018 at 10:18 AM, Ruqian Lyu < ruqianl at student.unimelb.edu.au
wrote:
Hi guys,
I'm wondering if any of you have met this warning message : Warning: replacing previous import 'SummarizedExperiment::start' by 'stats::start' when loading 'singscore' Warning: replacing previous import 'SummarizedExperiment::end' by 'stats::end' when loading 'singscore' I have import SummarizedExperiment in my DESCRIPTION and NAMESPACE. The package passed R CMD Check and BiocCheck without warnings. But the build report returned the warnings above. Link to the report: http://bioconductor.org/spb_reports/singscore_buildreport_ 20180414041637.html I'm not sure why this is happening. Any help will be appreciated. Thanks! Regards, Ruqian
[[alternative HTML version deleted]]
_______________________________________________ Bioc-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel
This email message may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited. If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.