Set working directory.
wd(pkg = ".", path = "")
pkg
package description, can be path or package name. See as.package() for more information
as.package()
path
path within package. Leave empty to change working directory to package directory.