Skip to content

Commit

Permalink
fix erreur / dépendance magrittr
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalIrz committed Feb 7, 2024
1 parent f6f5633 commit 5ad41f0
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 50 deletions.
7 changes: 6 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: aspe
Type: Package
Title: An R Package to Analyse and Visualise River Fish Data in France
Version: 0.3.9
Version: 0.4.0
Date: 2023-08-09
Authors@R: c(
person(given = "Pascal",
Expand All @@ -19,6 +19,10 @@ Authors@R: c(
email = "[email protected]",
role = "ctb",
comment = c(ORCID = "0000-0003-4522-027X")),
person(given = "Emmanuelle",
family = "Dortel",
email = "[email protected]",
role = "ctb"),
person(given = "Lilian",
family = "Bonnafoux",
email = "[email protected]",
Expand Down Expand Up @@ -47,6 +51,7 @@ Imports:
ggtext,
lifecycle,
lubridate,
magrittr,
patchwork,
purrr,
readr,
Expand Down
8 changes: 8 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(def_attribut_id)
export(expl_commentaires_champs)
export(expl_lister_champs)
export(expl_trouver_table)
Expand Down Expand Up @@ -66,7 +67,9 @@ export(mef_ajouter_validation)
export(mef_colo_ext_pops)
export(mef_compter_pres_abs_env)
export(mef_creer_passerelle)
export(mef_filtrer_id)
export(mef_filtrer_nb_mini_annees)
export(mef_filtrer_ope_id)
export(mef_ipr_radar)
export(mef_pivoter_var_env)
export(mef_recoder_esp_code_alt)
Expand All @@ -76,6 +79,8 @@ export(misc_charger_donnees_test)
export(misc_derniere_date)
export(misc_nom_dernier_fichier)
import(dplyr)
import(magrittr)
import(utils)
importFrom(dplyr,arrange)
importFrom(dplyr,case_when)
importFrom(dplyr,distinct)
Expand Down Expand Up @@ -161,6 +166,9 @@ importFrom(readr,locale)
importFrom(readr,read_csv2)
importFrom(readxl,read_xlsx)
importFrom(rlang,":=")
importFrom(rlang,enquo)
importFrom(rlang,quo_is_null)
importFrom(rlang,quo_name)
importFrom(scales,number_format)
importFrom(scales,pretty_breaks)
importFrom(sf,st_as_sf)
Expand Down
2 changes: 1 addition & 1 deletion R/def_attribut_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def_attribut_id <- function(df,var_id,var_tmp,var_pro=NULL) {
tb <- do.call("rbind",lapply(1:nrow(id), function(i) def_obs_combin_pro(i)))
}
return(tb)
}
}
2 changes: 1 addition & 1 deletion R/gg_colo_ext_pops.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' @importFrom scales pretty_breaks
#' @importFrom dplyr pull filter rowwise ungroup
#' @importFrom stats na.omit
#' @importFrom purrr map
#' @importFrom purrr map set_names
#' @importFrom ggiraph geom_point_interactive girafe opts_sizing
#' @importFrom shiny HTML
#'
Expand Down
2 changes: 1 addition & 1 deletion R/gg_temp_peuplement.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' element_blank element_text element_rect
#'@importFrom ggtext element_markdown
#'@importFrom patchwork plot_layout
#'@importFrom purrr map
#'@importFrom purrr map set_names
#'@importFrom shiny HTML
#'@importFrom stringr str_wrap
#'
Expand Down
12 changes: 1 addition & 11 deletions R/mef_filtrer_nb_mini_annees.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#' @return Dataframe filtré, c'est-à-dire exourgé des objets qui n'ont pas assez d'années
#' de données.
#' @export
#' @importFrom purrr set_names
#'
#' @examples
#' \dontrun{
Expand All @@ -35,15 +36,4 @@ mef_filtrer_nb_mini_annees <- function(df, nb_mini_annees, var_id)
df %>%
filter(get(!!var_id) %in% var_ids)

# var_ids <- df %>%
# group_by(!!var_id) %>%
# summarise(n = n_distinct(annee)) %>%
# ungroup() %>%
# filter(n >= nb_mini_annees) %>%
# pull(!!var_id) %>%
# as.character()
#
# df %>%
# filter(var_id %in% var_ids)

}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ Répertoires Github associés / Associated Github repositories
------------

Plusieurs dépôts Github sont associés au package :

- [aspe_data](https://github.com/PascalIrz/aspe_data) : construction des jeux de données inclus dans le package {aspe}
- [aspe_test](https://github.com/PascalIrz/aspe_test) : Fichiers R Markdown pour tester le package {aspe} et produire les tutos
- [aspe_demo](https://github.com/PascalIrz/aspe_demo) : Fichiers R Markdown pour prétraiter les données pour [un tableau de bord interactif](https://gitlab.ofb.fr/cedric.mondy1/aspedashboard)
- [aspeQual](https://github.com/PascalIrz/aspeQual) : package R destiné à la mise en qualité de la base Aspe

The package comes with a number of associated repos :

- [aspe_data](https://github.com/PascalIrz/aspe_data): building of the datasets included in the {aspe} package
- [aspe_test](https://github.com/PascalIrz/aspe_test): R Markdown files to test the {aspe} package and to build the tutorials
- [aspe_demo](https://github.com/PascalIrz/aspe_demo): R Markdown files to pre-process the fish data for [a dashboard app](https://gitlab.ofb.fr/cedric.mondy1/aspedashboard)
Expand All @@ -68,13 +70,15 @@ Tutoriels / Vignettes
La documentation générale du package est diffusée sur Github pages : https://pascalirz.github.io/aspe/

Une série de tutoriels est en ligne :

- [Traiter des données Indice Poisson Rivière (IPR)](https://rpubs.com/kamoke/713491)
- [Faire des traitements de base à partir des lots](https://rpubs.com/kamoke/715102)
- [Traiter des mesures individuelles](https://rpubs.com/kamoke/715858)
- [Faire des traitements géographiques](https://rpubs.com/kamoke/716322)
- [Construire des relations taille-poids](https://rpubs.com/kamoke/729779)

Several vignettes (in French) are available online:

- [Processing the fish-based river health index](https://rpubs.com/kamoke/713491)
- [Base processing on the fish batches data](https://rpubs.com/kamoke/715102)
- [Processing the individual measurements](https://rpubs.com/kamoke/715858)
Expand Down
1 change: 1 addition & 0 deletions man/aspe-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions man/def_attribut_id.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 12 additions & 15 deletions man/mef_filtrer_id.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 12 additions & 13 deletions man/mef_filtrer_ope_id.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ad41f0

Please sign in to comment.