Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A rendered script
script.R
might look like:It may or may not have an accompanying
_quarto.yml
file. A simple version of the Quarto configuration might look like:script.R
is identified as quarto-static byrsconnect::writeManifest()
andrsconnect::deployApp()
.script.R
and_quarto.yml
is identified as quarto-static byrsconnect::writeManifest()
andrsconnect::deployApp()
.Other changes
This work also necessitated a change to how we bundle content. In particular, RStudio is able to run and deploy Shiny single-file applications which are contained in files not named
app.R
. For example, if we create a project containing the default Geyser app and save it tonotapp.R
rather thanapp.R
, RStudio can deploy that file. It is able to deploy the Shiny application becausenotapp.R
is renamed toapp.R
when the content is bundled.The action taken by RStudio is effectively:
This forces rsconnect to treat the content as a Shiny application and also forces the rename of
notapp.R
toapp.R
.Prior to this change, rsconnect would rewrite any
appPrimaryDoc=*.R
toapp.R
regardless of content type. Unfortunately,appPrimaryDoc
is computed internally and used by Quarto content. Because that primary asset was an R script, bundling renamed it. To avoid this, the rename is now specific to Shiny content.Test that RStudio can deploy a Shiny application in a
notapp.R
file. Download that deployed bundle and see that the application has been renamed toapp.R
.Other types of content (e.g., Plumber APIs, Quarto rendered scripts) do not have their R scripts renamed when deployed.