Hello everyone,
I am attempting to publish a Quarto Book project from Positron to Posit Connect Cloud using the integrated Posit Publisher tool, but I am consistently running into the following error, despite taking several steps to explicitly define the R version:
2025-12-10T21:33:09+07:00 Failed to publish content: R version was not provided. You might be missing platform in the manifest. error_id=99fe5515-e2a5-4417-a48e-4991b884495b
(Note: I understand the timestamp and ID will be different, but the core error message remains the same.)
Project Details & Environment:
- IDE: Positron
- Target: Posit Connect Cloud
- Content Type: Quarto Book (containing R code chunks:
{r}) - R Version: 4.5.2
- Dependency Management:
renv(Therenv.lockfile is present in the project root.)
And of course I tried to preview using quarto preview and the book rendered without any error.
Steps Taken (Troubleshooting Done So Far):
I have attempted the following configuration changes to explicitly provide the R version, but the error persists:
- **Added
platform: r: '4.5.2'to_quarto.yml:
# _quarto.yml
project:
type: book
output-dir: docs
preview:
port: 4206
browser: false
platform: # I don't know if this required, suggested by Gemini
r: '4.5.2'
-
Manually created
rsconnect/r-version.json:
I created the file at the project root with the content:{ "version": "4.5.2" } -
Added a minimal
DESCRIPTIONfile:
I added aDESCRIPTIONfile in the root directory to force recognition as an R project. -
Activate and deactivate the
renv
I tried to deactivate then restart session and publish -> still error, activate again then restart session and publish -> still error. -
Success with Publish from GitHub
After addedmanifest.jsonfile and usePublish from GitHubthe book published successfully.
After performing each step (1 to 4) and restarting the session, the publication still fails with the same "R version was not provided" error. It seems the Posit Publisher is completely ignoring all explicit R version metadata provided in the project manifest creation step.
Has anyone encountered this specific issue when publishing a Quarto Book with renv from Positron to Posit Connect Cloud? Are there any hidden configuration files or Positron settings that might be overriding the R version detection?
Thank you for any insight you can provide!