diff --git a/R/get_data.R b/R/get_data.R index d24924a0ecc426661644fb1dee857326b991feee..90a6b98920df2d82d63066b4fd7df232c728cb3b 100644 --- a/R/get_data.R +++ b/R/get_data.R @@ -23,7 +23,7 @@ #' \dontrun{ #' importer_data(table = "test_iris", schema = "public", db = "public", user = "does") #' } -#' @source {rpostgis} http://mablab.org/rpostgis/ +#' @source \\{rpostgis}\\ http://mablab.org/rpostgis/ importer_data <- function(table = NULL, schema = NULL, db = "public", server = NULL, user = "does", limit = 0, ...) { @@ -91,8 +91,8 @@ importer_data <- function(table = NULL, schema = NULL, db = "public", server = if ("id_row__" %in% champs$column_name) { - data <- data %>% dplyr::arrange(id_row__) %>% - dplyr::select(-id_row__) + data <- data %>% dplyr::arrange(.data$id_row__) %>% + dplyr::select(-"id_row__") } } diff --git a/R/list_tables.R b/R/list_tables.R index 33559df95663208a3316eddce08a5adc7c29726b..738149f6b8a4a25af16f2db23523778b11182c4d 100644 --- a/R/list_tables.R +++ b/R/list_tables.R @@ -40,7 +40,7 @@ list_tables <- function(con = NULL, schema = NULL, db = NULL, user = NULL, ...) if(con_a_creer_fermer) { DBI::dbDisconnect(connexion) } - res<- all_tables %>% arrange(table_name) + res <- all_tables %>% arrange(.data$table_name) res <- res$table_name return(res) diff --git a/R/post_data.R b/R/post_data.R index fd10ecea3c3479c9b082f5a604e2dbb44953657a..896f775451026418e04459039642c1aad763b8f1 100644 --- a/R/post_data.R +++ b/R/post_data.R @@ -29,7 +29,7 @@ #' poster_data(data = iris, table = "test_iris", schema = "public", db = "public", #' pk = NULL, post_row_name = FALSE, overwrite = TRUE, user = "does") #' } -#' @source {rpostgis} http://mablab.org/rpostgis/ +#' @source \\{rpostgis}\\ http://mablab.org/rpostgis/ poster_data <- function(data = NULL, table = NULL, diff --git a/man/importer_data.Rd b/man/importer_data.Rd index 323a650d40e84953ebbbb60dce94d8240b9f9705..78132ab9f3f0fda4a9bd6ca230e001bf655a75a5 100644 --- a/man/importer_data.Rd +++ b/man/importer_data.Rd @@ -4,7 +4,7 @@ \alias{importer_data} \title{Import d'une table a partir du serveur de donnees, fonction qui s'adapte aux types de table a charger : recuperation des modalites des facteurs si chargee avec {rpostgis}, sf dataframe si table geographique.} \source{ -{rpostgis} http://mablab.org/rpostgis/ +\\{rpostgis}\\ http://mablab.org/rpostgis/ } \usage{ importer_data( diff --git a/man/poster_data.Rd b/man/poster_data.Rd index e2aa254398c80b0d16fc77ad5225500121387305..d0071ff5675f260c2df0258ad6a420b1d3a03536 100644 --- a/man/poster_data.Rd +++ b/man/poster_data.Rd @@ -4,7 +4,7 @@ \alias{poster_data} \title{Chargement d'un dataset sur le serveur avec rpostgis. Par rapport aux autres fonctions \code{post_data()}, \code{post_data_pg()} ouvre et ferme la connexion au SGBD, gere les dataframes spatiaux et les facteurs, et poste quelques metadonnees en commentaire de la table.} \source{ -{rpostgis} http://mablab.org/rpostgis/ +\\{rpostgis}\\ http://mablab.org/rpostgis/ } \usage{ poster_data(