Closed cderv closed 1 year ago
You haven't missed anything; the deployment records for individual files (vs. directories) are indeed written separately. We should make the docs clearer.
The docs now say:
#' @param recordDir Directory where deployment record is written. The default,
#' `NULL`, uses `appDir`, since this is usually where you want the deployment
#' data to be stored. This argument is typically only needed when deploying
#' a directory of static files since you want to store the record with the
#' code that generated those files, not the files themselves.
It's not 100% accurate, but I think it's mostly true, since even when recordDir
is a path to a file, the deployment record will still be stored in a directory leading off off dirname(recordDir)
. I have some thoughts about a better structure for these files, which I'll pursue in future issues/PRs.
Hi,
I was trying to understand where records of deployment are written to. My use case is for internal use to deploy the pkgdown website to RStudio Connect. Currently, the
rsconnect
folder is inside thedocs
folder and not at the root of the package. not an issue per se but I find something odd:Doc is saying
However, in the code we have https://github.com/rstudio/rsconnect/blob/b1194acf79acdd1f207c77e898a33b2f380bdc60/R/deployApp.R#L190-L192 where
appPath
can be modified toappPrimaryDoc
orappSourceDoc
, so not alwaysappDir
Should the documentation be improve or is there something wrong where the record is written ?
Just for sharing, I use this to have the record file in the root directory
Just in case there is something that I missed...