Coder Social home page Coder Social logo

Comments (4)

adokter avatar adokter commented on August 21, 2024

This relates specifically to use of vol2birdR in examples, manual suggests following block around example code that uses a suggested package:

if(require("pkgname")){

}

from biorad.

adokter avatar adokter commented on August 21, 2024

Current packages in Suggests:

    aws.s3,
    ggspatial,
    knitr,
    prettymapr,
    rmarkdown,
    rosm,
    sf,
    testthat (>= 3.0.0),
    tidyselect,
    vdiffr,
    vol2birdR

from biorad.

adokter avatar adokter commented on August 21, 2024

Current functions that check for dependencies in Suggest, each of these need a if(require("pkgname")) in the examples

calculate_vp.R:  rlang::check_installed("vol2birdR", format_reason_vol2bird("to run `calculate_vp`."))
download_pvolfiles.R:  rlang::check_installed('aws.s3','to download pvolfiles.')
list_vpts_aloft.R:  rlang::check_installed("aws.s3",
map.R:  rlang::check_installed(c("ggspatial","prettymapr"),'to map ppi\'s')
read_pvolfile.R:    rlang::check_installed("vol2birdR", format_reason_vol2bird("to read `NEXRAD` files."))

To do:

  • add rosm to the check_installed list in map.R
  • add if(require("pkgname")) blocks to examples for calculate_vp(), download_pvolfiles(), list_vpts_aloft(), map() and read_pvolfile()
  • move sf from Suggests to Imports, since the library is used in map(). sf is a very common library, so not worth adding a rlang::check_installed to map()

from biorad.

adokter avatar adokter commented on August 21, 2024

Check as follows with devtools:

devtools::check(env_vars = c("_R_CHECK_DEPENDS_ONLY_"="true"))

from biorad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.