MultiscaleDTM icon indicating copy to clipboard operation
MultiscaleDTM copied to clipboard

Vignette/Suggests CRAN issue

Open ailich opened this issue 1 month ago • 1 comments

Packages in Suggests should be used conditionally: see 'Writing R Extensions'. This needs to be corrected even if the missing package(s) become available. It can be tested by checking with R_CHECK_DEPENDS_ONLY=true.

ailich avatar Nov 25 '25 03:11 ailich

  • remove calls to library for packages under Suggests. Instead use ::
  • For qmetrics.jpg, that is generated by cowplot so will need to make the html code conditional
  • Either if statements or dynamic evals in R chunks for Suggests
{r Topo, eval = has_tmap & has_colorRamps, echo= FALSE, message=FALSE}

or

if (requireNamespace("tmap", quietly = TRUE)) {
      tmap::tm_(...)
   }

ailich avatar Nov 25 '25 03:11 ailich