goback: Navigate back to the directory you were in before calling...

View source: R/utils-goback.R

gobackR Documentation

Navigate back to the directory you were in before calling gotest()

Description

Navigate back to the directory you were in before calling gotest()

Usage

goback()

Details

After running gotest(), you will be in a temporary directory, and you'll be able to build a test document with arbitrary knitr code chunks. Once you're done testing and checking your output, run this function to return to the real document directory, and to reset the here::here() command so that it references the real project again.

Assumes you're going back to a directory in the hake repository and that the file .here exists in the hake repository root directory.

Value

Nothing


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.