make_pathname: Replace spaces in strings with underscores

Description Usage Arguments Value Examples

Description

Useful for creating paths to a particular swirl course, as you might want to do in files like initLesson.R.

Usage

1

Arguments

name

A vector of strings.

Value

A string vector where spaces are replaced with underscores.

Examples

1
2
3
4
5
make_pathname("Developing Data Products")
# "Developing_Data_Products"

make_pathname(c("R Programming", "Exploratory Data Analysis"))
# "R_Programming" "Exploratory_Data_Analysis"

swirlify documentation built on May 28, 2019, 9:02 a.m.