Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

make_pathname

Replace spaces in strings with underscores


Description

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

Usage

make_pathname(name)

Arguments

name

A vector of strings.

Value

A string vector where spaces are replaced with underscores.

Examples

make_pathname("Developing Data Products")
# "Developing_Data_Products"

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

swirlify

A Toolbox for Writing 'swirl' Courses

v0.5.3
MIT + file LICENSE
Authors
Sean Kross [aut, cre], Nick Carchedi [aut], Chih-Cheng Liang [ctb], Wush Wu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.