Add some warnings in README
[pkgdev.git] / R / zzz.R
... / ...
CommitLineData
1#called by library(pkgdev)
2.onAttach = function(libname, pkgname) {
3 #wipe all previous "loaded" tags
4 R_HOME_USER = Sys.getenv("R_HOME_USER")
5 if (R_HOME_USER != "") {
6 pkgdevPackagesPath = file.path( Sys.getenv("R_HOME_USER"),"pkgdev","pkgs" )
7 for (package in list.dirs(pkgdevPackagesPath, recursive=FALSE))
8 file.remove(file.path(package,"loaded"))
9 }
10}