[R-pkg-devel] Confusion about what should be in Imports for a package with a shiny app

R. Mark Sharp rm@h@rp @end|ng |rom me@com
Wed Mar 24 05:16:59 CET 2021


I have a package (nprcgenekeepr) in which some packages listed in the DESCRIPTION file are used only within the shiny app scripts. For my prior CRAN submission (successful), I placed such packages in the Suggests section of the DESCRIPTION file. This time testing sites seemed to have directed me to place them in the Imports section and I now have multiple test environments (3 R-hub builder, 3 winbuilder, and 3 Travis-ci) that are showing no errors, warnings, or notes with that placement. However, the package check page https://cran.rstudio.com//web/checks/check_results_nprcgenekeepr.html site is showing the wrong package version (1.0.3 instead of 1.0.5) and some environments with a note of "Namespace in Imports field not imported from: ‘shinyBS’ All declared Imports should be used.”

I changed the function call from `popify` to `shinyBS::popify` and get the same results

I moved shinyBS to Suggests and I get the same note.

I also have shinyWidgets used within the same UI script and listed in the Imports section and it does not generate a note.

It appears that I have a basic misunderstanding of the message in the note and of where the `shinyBS` package should be listed within the DESCRIPTION file.

Help will be appreciated.

Mark


R. Mark Sharp, Ph.D.
Data Scientist and Biomedical Statistical Consultant
7526 Meadow Green St.
San Antonio, TX 78251
mobile: 210-218-2868
rmsharp using me.com



More information about the R-package-devel mailing list