R/XZDB_functions.R
xzdb.sync.to.shinyapp.RdCopies 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.
xzdb.sync.to.shinyapp(
xlsx.index.location = "Datasets infomation.xlsx",
DatasetfolderName = "datasets"
)Logical (invisibly):
TRUE if sync succeeded
FALSE if package directory is read-only or not found
if (FALSE) { # \dontrun{
xzdb.sync.to.shinyapp()
} # }