swli: swli

Description Usage Arguments Details Value Examples

Description

A lorem ipsum generator using a Star Wars JS library.

Based on the forcem javascript library that generates Star Wars text from different episodes. The installed .js file is different to the github version - window was replaced with global.

Usage

1
2
swli(paragraphs = 3, type = c("e4", "e5", "e6", "places", "people"),
  src = "installed")

Arguments

paragraphs

How many paragraphs should be returned

type

Provide the episode (3 - 6) or proper noun type

src

Change default value to pull from github

Details

When 0 paragraphs are requested, 5 are returned as per the code in the JS library.

Value

swli Star Wars lorem ipsum vector

Examples

1
2
swli(paragraphs = 1)
swli(type = "places")

MangoTheCat/swli documentation built on May 7, 2019, 2:23 p.m.