Skip to contents

generate jobs

Super class

charlatan::BaseProvider -> JobProvider

Public fields

locale

(character) the locale

formats

(character) vector of possible formats

Methods

Inherited methods


Method allowed_locales()

fetch the allowed locales for this provider

Usage

JobProvider$allowed_locales()


Method new()

Create a new JobProvider object

Usage

JobProvider$new(locale = NULL)

Arguments

locale

(character) the locale to use. See $allowed_locales() for locales supported (default: en_US)

Returns

A new JobProvider object


Method render()

Make a job

Usage

JobProvider$render()


Method clone()

The objects of this class are cloneable with this method.

Usage

JobProvider$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

z <- JobProvider$new()
z$render()
#> [1] "Educational psychologist"

z <- JobProvider$new(locale = "fr_FR")
z$locale
#> [1] "fr_FR"
z$render()
#> [1] "Agent de développement des énergies renouvelables"

z <- JobProvider$new(locale = "hr_HR")
z$locale
#> [1] "hr_HR"
z$render()
#> [1] "Prvostupnik sestrinstva"

z <- JobProvider$new(locale = "fa_IR")
z$locale
#> [1] "fa_IR"
z$render()
#> [1] "سرباز"