Skip to content

Commit

Permalink
Bring back the setwd() call inside on.exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirban166 committed Jul 7, 2021
1 parent dbc4c8d commit b4782d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/doc.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dldoc <- function # Make directlabels documentation
### Package directory root.
){
odir <- setwd(pkgdir)
on.exit(setwd(odir))
docdir <- file.path("tests","doc")
docdirs <- dir(docdir)
plotfiles <- sapply(docdirs,function(d)Sys.glob(file.path(docdir,d,"*.R")))
Expand Down

0 comments on commit b4782d9

Please sign in to comment.