R/phlegis-package.R

Defines functions .onLoad

#' @title
#' Philippines Legislative Analysis
#'
#' @import glue
#'         tibble
#'         magrittr
#'         logger
#'
#' @importFrom rlang %||%
#'
#' @importFrom tidyr
#'             unnest
#'             pivot_wider
#'
#' @importFrom progress
#'             progress_bar
#'
#' @importFrom httr
#'             POST
#'             content
#'
#' @importFrom rvest
#'             session_submit
#'             html_node html_nodes
#'             html_form html_form_set
#'             html_text html_attr
#'             url_absolute
#'             html_table
#'
#' @importFrom dplyr
#'             mutate
#'             filter
#'             select
#'             pull
#'             collect
#'             group_by
#'             bind_cols bind_rows
#'             across
#'             arrange
#'
#' @importFrom purrr
#'             map map2 map_dfr map_chr map_lgl
#'             walk walk2
#'
#' @importFrom stringr
#'             str_remove
#'             str_detect
#'
#' @importFrom arrow
#'             S3FileSystem
#'
#' @importFrom checkmate
#'             assert_class
#'             assert_string
#'             assert_choice
#'             assert_true
#'
#' @keywords internal
"_PACKAGE"

# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
## usethis namespace: end
NULL

.onLoad <- function(...) {

  # Set logging colors
  logger::log_layout(logger::layout_glue_colors)

}

pkg_name <- "phlegis"

pkg_user_agent <- "PH Legis Scraper https://github.com/tjpalanca/phlegis"
tjpalanca/phlegis documentation built on Dec. 23, 2021, 10:59 a.m.