File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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}
7373data <- get_parameters(node = "134865", parameters = "hs")
7474str(data)
75- plot(data, type = "l")
75+ if (!is.null(data)) plot(data, type = "l")
7676```
Original file line number Diff line number Diff 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 ;" />
You can’t perform that action at this time.
0 commit comments