Skip to content

[R-pkg-devel] CRAN Submission Warning and Notes for `HACSim` Package

3 messages · Jarrett Phillips, Duncan Murdoch, Ivan Krylov

#
Hello,

I am the maintainer of the `HACSim` package and received the below WARNING
and NOTE, but am unsure how to address them.

CRAN teams' auto-check service
Flavor: r-devel-linux-x86_64-debian-gcc, r-devel-windows-x86_64
Check: CRAN incoming feasibility, Result: NOTE
  Maintainer: 'Jarrett D. Phillips <phillipsjarrett1 at gmail.com>'

  Size of tarball: 13246681 bytes

Flavor: r-devel-windows-x86_64
Check: whether package can be installed, Result: WARNING
  Found the following significant warnings:
    Warning: replacing previous import 'shinydashboard::taskItem' by
'shinydashboardPlus::taskItem' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::dashboardHeader' by
'shinydashboardPlus::dashboardHeader' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::box' by
'shinydashboardPlus::box' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::messageItem' by
'shinydashboardPlus::messageItem' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::dashboardSidebar'
by 'shinydashboardPlus::dashboardSidebar' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::dashboardPage' by
'shinydashboardPlus::dashboardPage' when loading 'HACSim'
    Warning: replacing previous import 'shinyWidgets::progressBar' by
'shinydashboardPlus::progressBar' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::notificationItem'
by 'shinydashboardPlus::notificationItem' when loading 'HACSim'
    Warning: replacing previous import 'shinyWidgets::alert' by
'shinyjs::alert' when loading 'HACSim'
  See 'd:/RCompile/CRANincoming/R-devel/HACSim.Rcheck/00install.out' for
details.
  Used C++ compiler: 'g++.exe (GCC) 14.2.0'

Flavor: r-devel-linux-x86_64-debian-gcc
Check: whether package can be installed, Result: WARNING
  Found the following significant warnings:

/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:17:
warning: Using fallback compilation with Armadillo 14.6.3. Please consider
defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.
[-W#pragma-messages]
    Warning: replacing previous import 'shinydashboard::taskItem' by
'shinydashboardPlus::taskItem' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::dashboardHeader' by
'shinydashboardPlus::dashboardHeader' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::box' by
'shinydashboardPlus::box' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::messageItem' by
'shinydashboardPlus::messageItem' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::dashboardSidebar'
by 'shinydashboardPlus::dashboardSidebar' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::dashboardPage' by
'shinydashboardPlus::dashboardPage' when loading 'HACSim'
    Warning: replacing previous import 'shinyWidgets::progressBar' by
'shinydashboardPlus::progressBar' when loading 'HACSim'
    Warning: replacing previous import 'shinydashboard::notificationItem'
by 'shinydashboardPlus::notificationItem' when loading 'HACSim'
    Warning: replacing previous import 'shinyWidgets::alert' by
'shinyjs::alert' when loading 'HACSim'
  See '/srv/hornik/tmp/CRAN_pretest/HACSim.Rcheck/00install.out' for
details.
  Used C++ compiler: 'Debian clang version 19.1.7 (3+b2)'


The NOTE regarding the maintainer field has never been altered previously,
and it looks syntactically fine on the surface.

For the WARNING, I edited the NAMESPACE to use `import` rather than
`importFrom`, but that didn't fix things.

Any thoughts are greatly welcomed and appreciated.


Thanks.

Cheers,
Jarrertt
#
On 2025-09-19 9:09 a.m., Jarrett Phillips wrote:
Which of those two functions do you want?  You can have both, but only 
if you rename one of them when you import it.

Duncan Murdoch
#
? Fri, 19 Sep 2025 09:09:01 -0400
Jarrett Phillips <phillipsjarrett1 at gmail.com> ?????:
The maintainer information is a bit of a red herring. It is always
collected by this check (before 2014, it was printed with a NOTE, then
a 'Note_to_CRAN_maintainers' until 2024 to avoid returning a NOTE for
an otherwise perfect check result); nowadays it's hidden with an OK
status unless something else is not right.

Here, the NOTE is due to the size of the source package being too
large. Is there anything that can be trimmed down? Currently, the CRAN
policy limits data and documentation to 5 MB each and the source
package tarball to 10 MB.
As noted by Duncan Murdoch, it's better to use more specific imports of
individual functions (e.g. importFrom(shinydashboardPlus,
dashboardHeader) but not importFrom(shinydashboard, dashboardHeader) at
the same time) than less specific imports of the whole package
namespace (e.g. import(shinydashboard, shinydashboardPlus) and cause
conflicts) to avoid this warning.