Skip to content

Possibly outdated instruction in Chapter 20: Packages, Subsection: Deploying your app-package #645

@david-vicente

Description

@david-vicente

Since rsconnect recursively detects all R package dependencies for an application by parsing all .R and .Rmd files, is it really necessary to add pkgload to the list of Imports here:

  • Normally when you deploy an app, the rsconnect package automatically figures out all of the packages your code uses.
    But now that you have a DESCRIPTION file, it requires you to explicitly specify them.
    The easiest way to do this is to call usethis::use_package().
    You'll need to start with shiny and pkgload:
 usethis::use_package("shiny")
 usethis::use_package("pkgload")
 ```

source, web?

I tested on Shinyapps.io without putting pkgload in the DESCRIPTION file and it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions