Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

Helping ourselves with a centralized settings file

Finally, we show the famous centralized settings file we have been mentioning throughout the example. As you can see, it is simply a list of lists that contains parameters for how our system should behave. Centralizing these options in a single file as we do here can often be very convenient. Instead of changing code when we want different behaviors from our system, we can simply change this file, and everything will be taken care of for us:

SETTINGS <- list(    "debug" = TRUE,    "storage" = list(        "read" = list(            "name" = "CSVFiles",            "environment" = "production"        ),        "write" = list(            list(                "name" = "CSVFiles",                "environment" = "production"            )        ),        "table_names" = list(            "production" = list( "assets" = ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content