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

checkAppLayout() fails when app.R is present even if app.R not included in appFiles #1102

Closed
rundel opened this issue Oct 3, 2024 · 1 comment · Fixed by #1109
Closed
Assignees

Comments

@rundel
Copy link

rundel commented Oct 3, 2024

This was mostly an accidental edge case but when working in a directory with multiple single-file Shiny apps, one of which happened to be named app.R, it was no longer possible to deploy the other apps even when app.R was not selected as part of the deployment.

This occurs both with the RStudio gui or with the direct package interface:

rsconnect::deployApp(appFiles = "shiny.R", appPrimaryDoc = "shiny.R")
## ── Preparing for deployment ─────────────────────────────
## ✔ Deploying "shiny" to "server: rstudio02-metaproxy.production05.posit.academy / username: [email protected]"
## Error in `checkAppLayout()`:
## ! Project must not contain both app.R and a single-file Shiny app.
## Run `rlang::last_trace()` to see where the error occurred.

What I was trying to do is clearly not advisable but still seems undesirable that it should trigger an error and prevent deployment without renaming or moving files.

@aronatkins
Copy link
Contributor

Notes:

@rundel rundel closed this as completed Oct 21, 2024
@aronatkins aronatkins reopened this Oct 21, 2024
aronatkins added a commit that referenced this issue Oct 21, 2024
@aronatkins aronatkins self-assigned this Oct 21, 2024
aronatkins added a commit that referenced this issue Oct 23, 2024
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