fix_filenames

0th

Percentile

Convert filenames to match those in the book

Some filenames have been altered in order to comply with portability requirements on CRAN. This function converts the filenames between the CRAN forms and the book forms.

Usage
fix_filenames(x = c("tobook", "tocran"),
    dir = system.file("extdata", packages = "learningr"))
Arguments
x

Either ``tocran'' or ``tobook''.

dir

Directory containing the files.

Value

A logical vector of length 4, TRUE for each file whose name was changed.

Aliases
  • fix_filenames
Examples
# NOT RUN {
#To convert the files to the book form, use:
fix_filenames("tobook")
#The files were converted to CRAN form using:
fix_filenames("tocran", "learningr/inst/extdata")
# }
Documentation reproduced from package learningr, version 0.29.1, License: Unlimited

Community examples

Looks like there are no examples yet.