1

I was working on a R notebook and when I saved it I encountered this error message:

Error creating notebook: Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 1, column 40.

I am not sure what it is and how to fix it.

Please advise.

2 Answers 2

1

I had the same error (Mac OS). It worked for me to shut down RStudio and remove the hidden folder .Proj.user/ located under the project directory. Then after restarting RStudio and reopening the notebook files things worked as normal.

Sign up to request clarification or add additional context in comments.

Comments

1

I had this error and I fixed it by changing the intro on my Rnotebook. This is what it was originally (notice the double quotations):

---
title: ""This is my Title""
output: html_notebook
---

TO:

---
title: "This is my Title"
output: html_notebook
---

The issue was in the first title I had 2 quotation marks instead of one. I deleted the extra set and my issue was fixed.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.