-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow deploying .qmd
files with rmd-*
app modes
#595
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e3bced7
Update quarto file handling, add tests
toph-allen 1f19eb8
Fix typo
toph-allen ad8153a
Adjust language
toph-allen 62e3b4a
The IDE now apparently removes this line from project files
toph-allen 6b1e2aa
Update NEWS.md
toph-allen 7080f6f
Update conditions, adjust tests
toph-allen 02024dc
Remove no-longer-needed test files
toph-allen 478476c
Update Quarto conditions
toph-allen 1626933
Merge branch 'main' into toph-disallow-qmd-as-rmd
toph-allen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Not a Shiny R Markdown Document | ||
output: html_document | ||
--- | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "quarto-doc-none" | ||
--- | ||
|
||
## Quarto | ||
|
||
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should think about this error a bit more. It is possible to have a Quarto project that uses a
document.Rmd
file. Similarly, it is possible to have a Quarto project with anotebook.ipynb
file.It might be helpful if we captured an enumeration of file name collections and explained which combinations lead to different app modes, especially in the presence / non-presence of
quartoInfo
.Here's one example:
_quarto.yml
analysis.Rmd
playground.ipynb
What content type should be used when this code is deployed to Connect? Why?
Similarly, what about:
report.Rmd
with non-nilquartoInfo
Is this information more a signal to use Quarto or to use R Markdown?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you raise a good point.
The app mode is inferred after we have put Quarto info into the format we desire, so by this point it's not clear whether it comes from running
quarto inspect
or as metadata passed in from the Quarto package.I'm not sure what Connect would do with the first example you provide.
We had been using
quartoInfo
's presence as an indicator of user intent to deploy Quarto. If continue to rely on that signal, we could do something like the following.quartoInfo
:quarto-static
, orquarto-shiny
if anyshinyRmdFiles
orshinyQmdFiles
.quartoInfo
:rmd-static
orrmd-shiny
, as would have been otherwise detectedqmdFiles
orshinyQmdFiles
results in an error?(Thinking about this more. When Quarto renders R Markdown files, their chunk arguments are parsed as R Markdown would, I'm guessing.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, we should discuss tomorrow. I was about to make some changes, but I want to confirm we're on the same page before I do another round on this.