3

My system:
Windows 7 64-bit
R version 3.2.3
Rstudio version 1.06

Details:
A similar question was asked 2 years ago here. Since the notebook functionalities have been updated since then, and because the suggested solution to clear workspace did not work, I hope it's OK to ask a somewhat similar question now.

I'm simply trying to preview the default file that pops up when you select New / R Notebook in the RStudio File menu, using the Preview Notebook button in Rstudio. I'm able to run the code before saving the file, and I'm also able to see some output when I run the script, but when I try to save the file as an Rmd.file, I can't get rid of that pesky warning. enter image description here I've named the file nb01.Rmd Googling the issue didn't help much either, so I hope some of you know how to fix this.

5
  • 4
    Got downvoted and would like to know why for future questions. Duplicate? Not programming related? Commented Sep 5, 2016 at 18:15
  • 2
    Can you try updating the rmarkdown package? Try getting the latest version from GitHub: devtools::install_github('rstudio/rmarkdown') Commented Sep 5, 2016 at 18:54
  • 2
    @Kevin Ushey Your suggestion solved the problem! Commented Sep 6, 2016 at 8:18
  • @Kevin Ushey Would you like to write your suggestion up as an answer? Commented Aug 19, 2017 at 16:01
  • 1
    I also followed @KevinUshey's advice but had to restart RStudio before the change took effect. Commented Jul 21, 2021 at 13:33

2 Answers 2

3

I had a similar issue with a ggplot2 output not allowing the preview to be created and the notebook to be saved. I don't really have a solution to this but I updated all my packages in R studio, and voila problem solved. I have no idea why that worked.

But if you are having a similar issue, update the packages.

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

1 Comment

I'm getting the error and I just updated all my packages.
1

I have same issue I change code from this

---
title: "M-5 Time Series"
output:
html_notebook: M_5_Time_series
IM_time_series: M_5_Time_series
pdf_document: M_5_Time_series
---

To this

title: "M-5 Time Series"
output:
html_notebook

Problem Solved

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.