Skip to content

Commit fb6bc95

Browse files
committed
Deploying to gh-pages from @ d5444ce 🚀
1 parent 0df465f commit fb6bc95

19 files changed

Lines changed: 86 additions & 64 deletions

articles/resourcecode.html

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/resourcecode.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,21 @@ node
164164
#> [,1]
165165
#> [1,] 288.974
166166
ts <- get_parameters(node = node$point, parameters = c("hs", "tp", "dp", "cge"))
167-
ggplot(tidyr::pivot_longer(ts, -1), aes(x = time, y = value, col = name)) +
168-
geom_line() +
169-
coord_cartesian(expand = FALSE) +
170-
facet_wrap(~name, ncol = 2, scales = "free_y") +
171-
scale_x_datetime(name = NULL, date_breaks = "month") +
172-
scale_y_continuous(name = NULL) +
173-
theme_minimal() +
174-
theme(
175-
legend.position = "none",
176-
axis.text.x = element_text(angle = 60, hjust = 1)
177-
)
167+
if (!is.null(ts)) {
168+
ggplot(tidyr::pivot_longer(ts, -1), aes(x = time, y = value, col = name)) +
169+
geom_line() +
170+
coord_cartesian(expand = FALSE) +
171+
facet_wrap(~name, ncol = 2, scales = "free_y") +
172+
scale_x_datetime(name = NULL, date_breaks = "month") +
173+
scale_y_continuous(name = NULL) +
174+
theme_minimal() +
175+
theme(
176+
legend.position = "none",
177+
axis.text.x = element_text(angle = 60, hjust = 1)
178+
)
179+
}
178180
```
179181

180-
![](resourcecode_files/figure-html/unnamed-chunk-8-1.png)
181-
182182
- 1D and 2D spectra of the SPEC grid can be downloaded directly from
183183
IFREMER FTP using functions `get_1Dspectrum()` and `get_2Dspectrum()`.
184184
We also provide a plotting function for the 2D spectrum.
@@ -269,7 +269,7 @@ spectra for any given time, which can be specified by the time index or
269269
directly the date:
270270

271271
``` r
272-
plot_2d_specta(spec_2d, "1994-01-15 18:00")
272+
if (!is.null(spec_2d)) plot_2d_specta(spec_2d, "1994-01-15 18:00")
273273
```
274274

275275
![](resourcecode_files/figure-html/unnamed-chunk-12-1.png)

deps/bootstrap-5.3.1/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

news/index.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

news/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
## resourcecode (development version)
44

5-
- Custom labels are now handeled properly in
5+
- Custom labels are now handled properly in
66
[`cut_seasons()`](https://resourcecode-project.github.io/r-resourcecode/reference/cut_seasons.md)
7+
;
8+
- Switch to {httr2} to download files and API request.
79

810
## resourcecode 0.5.2
911

pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pkgdown: 2.2.0
33
pkgdown_sha: ~
44
articles:
55
resourcecode: resourcecode.html
6-
last_built: 2026-01-09T10:34Z
6+
last_built: 2026-02-03T12:20Z
77
urls:
88
reference: https://resourcecode-project.github.io/r-resourcecode/reference
99
article: https://resourcecode-project.github.io/r-resourcecode/articles
-4.97 KB
Loading

reference/compute_sea_state_1d_spectrum.html

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference/compute_sea_state_1d_spectrum.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ rscd_params <- get_parameters(
3232
end = "1994-01-31 23:00:00",
3333
parameters = c("hs", "tp")
3434
)
35+
#> HTTP error 404: Not Found
36+
#> Failed to retrieve parameter: hs
3537
spec <- resourcecodedata::rscd_1d_spectra
3638
param_calc <- compute_sea_state_1d_spectrum(spec)
3739
oldpar <- par(mfcol = c(2, 1))
-4.97 KB
Loading

0 commit comments

Comments
 (0)