diff --git a/DESCRIPTION b/DESCRIPTION index d323ed6..252b033 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -15,6 +15,7 @@ URL: https://github.com/feddelegrand7/ralger BugReports: https://github.com/feddelegrand7/ralger/issues VignetteBuilder: knitr Imports: + magrittr, rvest, xml2, tidyr, diff --git a/NAMESPACE b/NAMESPACE index 85628f1..8d30a00 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -22,7 +22,7 @@ importFrom(crayon,green) importFrom(curl,has_internet) importFrom(dplyr,mutate_all) importFrom(robotstxt,paths_allowed) -importFrom(rvest,"%>%") +importFrom(magrittr,"%>%") importFrom(rvest,html_attr) importFrom(rvest,html_nodes) importFrom(rvest,html_table) diff --git a/R/attribute_scrap.R b/R/attribute_scrap.R index 11a8fff..0bf722d 100644 --- a/R/attribute_scrap.R +++ b/R/attribute_scrap.R @@ -22,7 +22,7 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_text html_attr %>% +#' @importFrom rvest html_nodes html_text html_attr #' @importFrom xml2 read_html #' @importFrom crayon green #' @importFrom crayon bgRed diff --git a/R/audio_scrap.R b/R/audio_scrap.R index c20814c..72237dd 100644 --- a/R/audio_scrap.R +++ b/R/audio_scrap.R @@ -35,7 +35,7 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_attr %>% +#' @importFrom rvest html_nodes html_attr #' @importFrom xml2 read_html #' @importFrom robotstxt paths_allowed #' @importFrom crayon green diff --git a/R/colors_scrap.R b/R/colors_scrap.R index 411ff04..d8f5de4 100644 --- a/R/colors_scrap.R +++ b/R/colors_scrap.R @@ -23,7 +23,7 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_attr html_text %>% +#' @importFrom rvest html_nodes html_attr html_text #' @importFrom xml2 read_html #' @importFrom robotstxt paths_allowed #' @importFrom crayon green diff --git a/R/images_noalt_scrap.R b/R/images_noalt_scrap.R index 6ae5b83..93be7a6 100644 --- a/R/images_noalt_scrap.R +++ b/R/images_noalt_scrap.R @@ -12,7 +12,7 @@ #' #' } #' -#' @importFrom rvest html_nodes html_attr %>% +#' @importFrom rvest html_nodes html_attr #' @importFrom xml2 read_html #' @importFrom robotstxt paths_allowed #' @importFrom crayon green diff --git a/R/images_scrap.R b/R/images_scrap.R index ae00cb3..37b7981 100644 --- a/R/images_scrap.R +++ b/R/images_scrap.R @@ -14,7 +14,7 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_attr %>% +#' @importFrom rvest html_nodes html_attr #' @importFrom xml2 read_html #' @importFrom robotstxt paths_allowed #' @importFrom crayon green diff --git a/R/paragraphs_scrap.R b/R/paragraphs_scrap.R index cf1a2a1..bb44e83 100644 --- a/R/paragraphs_scrap.R +++ b/R/paragraphs_scrap.R @@ -18,7 +18,7 @@ #' paragraphs_scrap(link)} #' #' @export -#' @importFrom rvest html_nodes html_text html_attr %>% +#' @importFrom rvest html_nodes html_text html_attr #' @importFrom xml2 read_html #' @importFrom crayon green #' @importFrom crayon bgRed diff --git a/R/preview_images.R b/R/preview_images.R index ca2bc9e..e323907 100644 --- a/R/preview_images.R +++ b/R/preview_images.R @@ -12,7 +12,7 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_attr %>% +#' @importFrom rvest html_nodes html_attr #' @importFrom xml2 read_html #' @importFrom robotstxt paths_allowed #' @importFrom crayon green diff --git a/R/scrap.R b/R/scrap.R index dc6a67a..d4395aa 100644 --- a/R/scrap.R +++ b/R/scrap.R @@ -18,7 +18,8 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_text %>% +#' @importFrom rvest html_nodes html_text +#' @importFrom magrittr %>% #' @importFrom xml2 read_html #' @importFrom stringr str_replace_all str_trim #' @importFrom robotstxt paths_allowed diff --git a/R/table_scrap.R b/R/table_scrap.R index ab7311f..a9c764c 100644 --- a/R/table_scrap.R +++ b/R/table_scrap.R @@ -19,7 +19,7 @@ #' #' @export #' @importFrom xml2 read_html -#' @importFrom rvest html_table %>% +#' @importFrom rvest html_table #' @importFrom robotstxt paths_allowed #' @importFrom crayon green #' @importFrom crayon bgRed diff --git a/R/tidy_scrap.R b/R/tidy_scrap.R index 3ebaee8..65ff598 100644 --- a/R/tidy_scrap.R +++ b/R/tidy_scrap.R @@ -19,7 +19,7 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_text %>% +#' @importFrom rvest html_nodes html_text #' @importFrom xml2 read_html #' @importFrom tidyr as_tibble #' @importFrom stringr str_replace diff --git a/R/titles_scrap.R b/R/titles_scrap.R index 2c20b7a..12077dc 100644 --- a/R/titles_scrap.R +++ b/R/titles_scrap.R @@ -17,7 +17,7 @@ #' titles_scrap(link)} #' #' @export -#' @importFrom rvest html_nodes html_text html_attr %>% +#' @importFrom rvest html_nodes html_text html_attr #' @importFrom xml2 read_html #' @importFrom crayon green #' @importFrom crayon bgRed diff --git a/R/weblink_scrap.R b/R/weblink_scrap.R index 02ae32a..ee17b2e 100644 --- a/R/weblink_scrap.R +++ b/R/weblink_scrap.R @@ -19,7 +19,7 @@ #' } #' #' @export -#' @importFrom rvest html_nodes html_text html_attr %>% +#' @importFrom rvest html_nodes html_text html_attr #' @importFrom xml2 read_html #' @importFrom crayon green #' @importFrom crayon bgRed