• Grelot Frederic's avatar
    catnat, population, clc · 9dbbbaeb
    Grelot Frederic authored
    - catnat dataset remplace gaspar dataset
    	- passage en array pour garder les types d'aléa
    - estimate_catnat_freq incluse dans la librairie
    - population dataset pour la population
    - clc_color dataset pour les couleurs et label de clc
    - map_so_ii inclus population, gère les légendes pour les thèmes
    - dossier script hors librairie por garder la trace des mises à jour des données (doit aller dand floodam.data)
    
    0 errors :heavy_check_mark: | 0 warnings :heavy_check_mark: | 1 note :heavy_multiplication_x:
    Mais la note concerne le temps...
    9dbbbaeb
current_version.r 581 bytes
#' @title Find the current version of some data
#' 
#' @param path character path to a directory where to find data
#' @param ... some extra parameters that will be passed to dir(path, ...)
#'
#' @return character path of the file corresponding the current version of the data
#'
#' @export
#'
#' @encoding UTF-8
#' @author Frédéric Grelot
#' 
#' @examples
#' 
#' \dontrun{
#' # To be added (soon)
#' }
current_version = function(path, ...) {
    path = as.character(path)[1]
    file.path(
        path,
        utils::head(sort(dir(path, ...), decreasing = TRUE), 1)