Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
agricolamz committed May 14, 2020
1 parent fec1d5c commit 36774ed
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 66 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ check_hint(paste("Here is our plot: <br>",
insert_images(tmp, image_width = "40%")))
```

It looks like it is better to change font size, if you want to change the size of the picture.

## 3. Some important notes

* It is possible to avoid code in the output `.html`. Just use the chunk argument `echo=FALSE`.
Expand Down
4 changes: 3 additions & 1 deletion docs/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ check_question(answer = 3,

Arguments `image_width` and `image_height` also except vector of values in case you need different size for different pictures. It is also possible to create a picture during the session, save it and use in `checkdown` functions.

```{r}
```{r, message=FALSE}
tmp <- tempfile(fileext = ".png")
library(ggplot2)
ggplot(data = mtcars, aes(mpg, disp)) + geom_point()
Expand All @@ -141,6 +141,8 @@ check_hint(paste("Here is our plot: <br>",
insert_images(tmp, image_width = "40%")))
```

It looks like it is better to change font size, if you want to change the size of the picture.

## 3. Some important notes

* It is possible to avoid code in the output `.html`. Just use the chunk argument `echo=FALSE`.
Expand Down
Loading

0 comments on commit 36774ed

Please sign in to comment.