Skip to content

Commit

Permalink
no longer uses imgur_upload(); all images are uploaded to r-forge ins…
Browse files Browse the repository at this point in the history
…tead
  • Loading branch information
yihui committed Nov 7, 2012
1 parent d539914 commit 0717985
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions 001-minimal.Rmd
Expand Up @@ -22,9 +22,9 @@ A _paragraph_ here. A code chunk below (remember the three backticks):

## graphics

It is easy. I did not really show the plot here; if you want it, remove the option `eval=FALSE` from the chunk header below.
It is easy.

```{r eval=FALSE}
```{r}
plot(1:10)
hist(rnorm(1000))
```
Expand Down
3 changes: 0 additions & 3 deletions 006-minimal.Rrst
Expand Up @@ -10,9 +10,6 @@ options(width = 75)
# do not use the sourcecode directive
render_rst(strict=TRUE)

# upload images to Imgur; you do not need this if you want to keep images local
opts_knit$set(upload.fun = imgur_upload)

# global chunk options
opts_chunk$set(cache=TRUE, fig.width=5, fig.height=5)
.. ..
Expand Down
2 changes: 0 additions & 2 deletions 009-slides.Rmd
Expand Up @@ -5,8 +5,6 @@
```{r setup, include=FALSE}
# set global chunk options
opts_chunk$set(cache=TRUE)
# upload images automatically
opts_knit$set(upload.fun = imgur_upload)
```

# Why
Expand Down
2 changes: 1 addition & 1 deletion 010-upload.Rmd
Expand Up @@ -5,7 +5,7 @@ First, the input file was named as `knitr-upload.Rmd` ([source](https://github.c
I used the code below to make sure **knitr** will upload images and set some global chunk options.

```{r setup}
opts_knit$set(upload.fun = imgur_upload) # upload all images to imgur.com
opts_knit$set(upload.fun = imgur_upload, base.url = NULL) # upload all images to imgur.com
opts_chunk$set(fig.width=5, fig.height=5, cache=TRUE)
````

Expand Down

0 comments on commit 0717985

Please sign in to comment.