#R Markdown (and quarto) code in Chat GPT output is garbled and unusable

1 messages · Page 1 of 1 (latest)

potent hearthBOT
#

Reported by @night panther

Bug Report: R Markdown (and quarto) code in Chat GPT output is garbled and unusable
`Steps to Reproduce`

Issue this prompt

Write an R Markdown script that outputs `Hello world!` and then `Howdy partner!` in two different cells, with a comment before each cell saying `Just a test`. Make sure you produce one piece of code only, ready to copy-and-paste into a file open in my text editor.
`Expected Result`

title: "Hello World Example"
output: html_document

<!-- Just a test -->

print("Hello world!")

<!-- Just a test -->

print("Howdy partner!")
`Actual Result`

One markdown piece of code

<!-- Just a test -->
```{r}
cat("Hello world!")

followed by one "Writing" piece of text

cat("Howdy partner!")

followed by an empty piece of code.

`Environment`

Ubuntu 24.04, ChatGPT 5.1 (auto), Brave 1.84.141 (Official Build) (64-bit)

#
Additional Information

Please provide relevant details to help resolve the issue, such as:

  • ChatGPT Shared Link (if applicable).
  • Screenshots or videos demonstrating the problem.

-# ➜ Need to contact support? Visit the OpenAI Help Center.