Skip to content

Commit

Permalink
need to use setwd in this block as we only temporarily need to be in …
Browse files Browse the repository at this point in the history
…current_here when setting back here
  • Loading branch information
Torbjørn Lindahl committed Sep 9, 2024
1 parent fc29317 commit 819b89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/here.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ with_here <- function(new_here, expr, chdir=FALSE, verbose=FALSE ) {
# make sure it goes back aftrwards (this will trigger after the
# above local_dir defer has changed the working dir back
defer(suppress_here_message(local({
setwd(current_here)
local_dir(current_here)
i_am(path_rel(tf_current, current_here))
}), verbose=verbose))

Expand Down

0 comments on commit 819b89e

Please sign in to comment.