简体   繁体   中英

R Markdown - First Attempt - Strange Error Message

I'm trying to create an R Markdown script for the first time today in RStudio. I have an existing R script which produces lots of graphs, and I'm hoping to use Markdown to produce .pdf files containing these graphs.

I started very simple:

```{r}

10 * 10

```

When I clicked on the "knit" button I saw an error message:

在此处输入图像描述

I ran getOption("repos") at the console and I saw:

"https://mran.microsoft.com/snapshot/2019-02-01"

I don't know if it's relevant (I suspect it is): I'm not using standard R, I'm using Microsoft R Client 3.5.2 because I need access to the revoScaleR package.

I don't really understand what's going on here but it looks as if I'm using out of date stuff...can anyone help fix this please?

Thank you.

Ahhhh...I think I've fixed it:

options(repos = c(CRAN = "https://cran.rstudio.com"))

Hoping this doesn't have any unintended consequences! >crosses fingers<

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM