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