Setup:
foo.bar()
in my own package MyPkg
.You can use load_all()
from devtools
which loads a package that's in development and allows you to use it (e.g. its functions) as if it was installed and loaded.
If your current working directory is the root of your package, just type
devtools::load_all()
If the root is not in your current working directory, pass the absolute path to the root as an argument:
devtools::load_all('/absolute/path/to/MyPkg')
To remove functions that you have defined in your global environment, use rm()
, e.g. rm(foo.bar)