Skip to content

Commit

Permalink
Merge pull request #13 from rolfsimoes/b-0.9.2
Browse files Browse the repository at this point in the history
Update plot size
  • Loading branch information
OldLipe authored Jan 21, 2023
2 parents ed95558 + 5a56bea commit 2431e80
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion R/preview-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ preview_check <- function(url) {

preview_read_file <- function(url) {
temp_file <- tempfile(fileext = paste0(".", preview_file_type(url)))

on.exit(unlink(temp_file))
make_get_request(
url = url,
Expand Down
2 changes: 1 addition & 1 deletion vignettes/rstac-01-intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ is_accessible <- is_online && tryCatch({
})
```

```{r plot-preview, eval=is_accessible}
```{r plot-preview, eval=is_accessible, fig.height=3, fig.width=5}
second_item <- items_fetched$features[[2]]
second_item |>
assets_url(asset_names = "thumbnail") |>
Expand Down
2 changes: 1 addition & 1 deletion vignettes/rstac-03-cql2-mpc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ is_accessible <- is_online && tryCatch({
})
```

```{r asset-preview, eval=is_accessible}
```{r asset-preview, eval=is_accessible, fig.height=3, fig.width=5}
selected_item$assets[["rendered_preview"]]$href
selected_item |>
Expand Down

0 comments on commit 2431e80

Please sign in to comment.