Skip to content
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

rsconnect::writeManifest() fails to infer appPrimaryDoc when file is Quarto (.qmd) not Markdown (.Rmd) #1106

Closed
fh-mthomson opened this issue Oct 11, 2024 · 1 comment · Fixed by #1107
Assignees

Comments

@fh-mthomson
Copy link
Contributor

To test:

  1. Open Project: https://github.com/fh-mthomson/rsconnect_quarto
  2. renv::restore()
  3. Try to create OR update the manifest.json file:
> rsconnect::writeManifest()
Error in `quartoInspect()`:
! Failed to run `quarto inspect` against your content:
ERROR: /home/michael.thomson/rsconnect_quarto/.Rprofile is not a valid Quarto input document

Stack trace:
at inspectConfig (file:///opt/quarto/1.5.56/bin/quarto.js:101501:19)
at async Command.actionHandler (file:///opt/quarto/1.5.56/bin/quarto.js:101515:20)
at async Command.execute (file:///opt/quarto/1.5.56/bin/quarto.js:8017:13)
at async Command.parseCommand (file:///opt/quarto/1.5.56/bin/quarto.js:7907:20)
at async quarto (file:///opt/quarto/1.5.56/bin/quarto.js:118224:9)
at async file:///opt/quarto/1.5.56/bin/quarto.js:118244:9
at async mainRunner (file:///opt/quarto/1.5.56/bin/quarto.js:118128:9)
at async file:///opt/quarto/1.5.56/bin/quarto.js:118235:5
Run `rlang::last_trace()` to see where the error occurred.
  1. Then, manually specifying works:
> rsconnect::writeManifest(appPrimaryDoc = "doc.qmd")
ℹ Capturing R dependencies from renv.lock
✔ Found 46 dependencies

In contrast, if you rename to doc.Rmd, it works off the shelf.

aronatkins added a commit that referenced this issue Oct 18, 2024
Consider files with .R, .Rmd, and .qmd as extensions when detecting the primary
document.

fixes #1106
@aronatkins
Copy link
Contributor

Thanks so much for reporting this issue. I've got a pending fix that should land shortly.

@aronatkins aronatkins self-assigned this Oct 18, 2024
aronatkins added a commit that referenced this issue Oct 18, 2024
Consider files with .R, .Rmd, and .qmd as extensions when detecting the primary
document.

fixes #1106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants