Commit 55545b56 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

docs(vignette): remove the use of dplyr in the 'mcmc' vignette (and in the...

docs(vignette): remove the use of dplyr in the 'mcmc' vignette (and in the 'Suggests' list of the DESCRIPTION file)
parent 7f038f88
Pipeline #30157 passed with stages
in 99 minutes and 58 seconds
......@@ -28,7 +28,7 @@ Imports:
utils
Suggests:
knitr, markdown, rmarkdown,
caRamel, coda, DEoptim, dplyr, FME, ggmcmc, hydroPSO, Rmalschains,
caRamel, coda, DEoptim, FME, ggmcmc, hydroPSO, Rmalschains,
GGally, ggplot2,
testthat
Description: Hydrological modelling tools developed at INRAE-Antony (HYCAR Research Unit, France). The package includes several conceptual rainfall-runoff models (GR4H, GR5H, GR4J, GR5J, GR6J, GR2M, GR1A) that can be applied either on a lumped or semi-distributed way. A snow accumulation and melt model (CemaNeige) and the associated functions for the calibration and evaluation of models are also included. Use help(airGR) for package description and references.
......
......@@ -15,8 +15,6 @@ library(airGR)
library(coda)
library(FME)
library(ggmcmc)
library(dplyr)
# source("airGR.R")
set.seed(123)
load(system.file("vignettesData/vignetteParamMCMC.rda", package = "airGR"))
```
......@@ -160,7 +158,7 @@ ggmcmc::ggs_traceplot(parDRAM)
The posterior density for each parameter can then be visualised:
```{r, fig.width=6, fig.height=9, warning=FALSE}
burnParDRAM <- dplyr::filter(parDRAM, Iteration > 1000) # to keep only the second half of the series
burnParDRAM <- parDRAM[parDRAM$Iteration > 1000, ] # to keep only the second half of the series
ggmcmc::ggs_density(burnParDRAM)
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment