Skip to content

Commit 54df1df

Browse files
committed
Polish README
1 parent c95d884 commit 54df1df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ Download a time series of significant wave height next to the coast of Finistèr
7272
```{r data_fetcher, fig.retina=3}
7373
data <- get_parameters(node = "134865", parameters = "hs")
7474
str(data)
75-
plot(data, type = "l")
75+
if (!is.null(data)) plot(data, type = "l")
7676
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ str(data)
8787
#> $ time: POSIXct[1:8760], format: "1994-01-01 00:00:00" "1994-01-01 01:00:00" ...
8888
#> $ hs : num [1:8760] 4.82 4.98 5.19 5.37 5.48 ...
8989
#> - attr(*, "node")= num 134864
90-
plot(data, type = "l")
90+
if (!is.null(data)) plot(data, type = "l")
9191
```
9292

9393
<img src="man/figures/README-data_fetcher-1.png" alt="" width="100%" style="display: block; margin: auto;" />

0 commit comments

Comments
 (0)