Copies the following from the current working directory into the installed package’s shinyapp/ directory:

  • datasets/

  • IndexedData/

  • the dataset-information Excel file (xlsx.index.location)

Before copying, the function clears any existing datasets/ or IndexedData/ folders inside the package directory to ensure a clean update.

The function tests write permission on the package directory. If the directory is locked (common on system-wide installations), a user-friendly warning is shown instructing the user to perform a manual copy.

xiaopei.sync.to.shinyapp(xlsx.index.location = "Datasets infomation.xlsx")

Arguments

xlsx.index.location

Character. Path to the Dataset Information Excel file in the current working directory. Default: "Datasets infomation.xlsx".

Value

Logical (invisibly):

  • TRUE if sync succeeded

  • FALSE if package directory is read-only or not found

Examples

if (FALSE) { # \dontrun{
xiaopei.sync.to.shinyapp()
} # }