workIn: Perform Operations in a Specified Directory and Return to the...

View source: R/misc.R

workInR Documentation

Perform Operations in a Specified Directory and Return to the Original Directory

Description

This function allows you to perform operations in a specified directory and then return to the original directory. It is useful when you need to work with files or directories that are located in a specific location, but you want to return to the original working directory after the operation is complete.

Usage

workIn(dir, expr)

Arguments

dir

The directory path in which to operate. If the directory does not exist, it will be created recursively.

expr

An R expression to be evaluated within the specified directory.

Value

The result of evaluating the expression within the specified directory.


easybio documentation built on Sept. 17, 2024, 1:08 a.m.