reloadLocal: Reloads everything to the way they're currently saved

Description Usage Examples

Description

Reloads everything to the way they're currently saved. If you've made any modifications to the functions and/or data then this will wipe away those changes and revert the items to the way they're stored in the database.

Usage

1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(local)
myfun <- function(x){x}
addLocal(myfun)
q("no")
# Reload R
library(local)
# Now myfun is in the environment
myfun <- "hey"
# Now it's changed
reloadLocal()
myfun # is back to function(x){x}

## End(Not run)

Dasonk/local documentation built on May 6, 2019, 1:38 p.m.