@@ -28,9 +28,31 @@ You can install the development version from GitHub with:
2828
2929``` {r installation, eval = FALSE}
3030# install.packages("remotes")
31- remotes::install_github("hydrostat/ALEA")
31+ remotes::install_github(
32+ "hydrostat/ALEA",
33+ dependencies = TRUE,
34+ upgrade = "never"
35+ )
3236```
3337
38+ If you also want the installed vignettes to be available through
39+ ` utils::browseVignettes("ALEA") ` , install with ` build_vignettes = TRUE ` :
40+
41+ ``` {r installation-vignettes, eval = FALSE}
42+ # install.packages("remotes")
43+ remotes::install_github(
44+ "hydrostat/ALEA",
45+ dependencies = TRUE,
46+ upgrade = "never",
47+ build_vignettes = TRUE
48+ )
49+ ```
50+
51+ After installation, load the package with:
52+
53+ ``` {r load-package, eval = FALSE}
54+ library(ALEA)
55+ ```
3456
3557## Main features
3658
@@ -206,6 +228,52 @@ alea_export(rl, path = "return_levels.csv")
206228alea_export(batch, path = "batch_results", type = "all")
207229```
208230
231+ ## Learning examples
232+
233+ Teaching-oriented ALEA-R workflow scripts are available in the ` examples/ `
234+ folder.
235+
236+ These examples use public Paraopeba hydrological data and demonstrate common
237+ frequency-analysis workflows:
238+
239+ - single-site frequency analysis;
240+ - comparison of candidate distributions;
241+ - return levels and bootstrap confidence intervals;
242+ - goodness-of-fit, diagnostics, and AI-assisted selection;
243+ - small batch analysis;
244+ - plots and exports.
245+
246+ Run the examples from the package root directory. For example:
247+
248+ ``` {r learning-examples-source, eval = FALSE}
249+ source("examples/01_single_site_basic_workflow.R")
250+ ```
251+
252+ The example data files are stored in:
253+
254+ ``` text
255+ examples/data/
256+ ```
257+
258+ Generated teaching outputs, such as exported plots and CSV files, are written to:
259+
260+ ``` text
261+ examples/output/
262+ ```
263+
264+ The examples are designed for learning and classroom use. They use only the
265+ public ALEA-R API and the distributions supported in the current release:
266+ ` gev ` , ` gpa ` , ` pe3 ` , ` ln2 ` , ` ln3 ` , and ` gum ` .
267+
268+ Installed vignettes can be listed with:
269+
270+ ``` {r browse-vignettes, eval = FALSE}
271+ utils::browseVignettes("ALEA")
272+ ```
273+
274+ When installing from GitHub, use ` build_vignettes = TRUE ` if you want these
275+ vignettes to be installed locally.
276+
209277## Current limitations
210278
211279The initial implementation does not include:
@@ -220,8 +288,8 @@ The initial implementation does not include:
220288
221289## Citation
222290
223- A formal package citation will be added before the first public release .
291+ Please cite ALEA-R in reports and publications where it supports the analysis .
224292
225293``` {r citation, eval = FALSE}
226294citation("ALEA")
227- ```
295+ ```
0 commit comments