R/widget-works-in-foreign-country.R

Defines functions works_in_foreign_country_ works_in_foreign_country

Documented in works_in_foreign_country

#' @rdname address
#' @export
works_in_foreign_country <- function(...,
                                     include_alternate = FALSE,
                                     include_past = FALSE,
                                     include_self_employed = TRUE,
                                     city = NULL,
                                     type = "business") {
    countries <- prep_dots(...)
    reroute(works_in_foreign_country_(countries,
                                      include_alternate = include_alternate,
                                      include_past = include_past,
                                      include_self_employed = include_self_employed,
                                      city = city,
                                      type = type))
}


works_in_foreign_country_ <- function(countries,
                                      include_alternate = FALSE,
                                      include_past = FALSE,
                                      include_self_employed = TRUE,
                                      city = city,
                                      type = "business") {
    address_widget("country_code", countries,
                   type = type,
                   include_alternate = include_alternate,
                   include_past = include_past,
                   include_self_employed = include_self_employed,
                   include_seasonal = FALSE,
                   include_student_local = FALSE,
                   include_student_permanent = FALSE,
                   foreign_city = city)
}
tarakc02/discoveryengine documentation built on Sept. 26, 2023, 12:17 a.m.