cat_to_filepath_function_factory: Create a function to write to a specific file

View source: R/utils_files.R

cat_to_filepath_function_factoryR Documentation

Create a function to write to a specific file

Description

This function creates a closure that writes to a specified file path. It's useful for creating multiple functions that write to different files while maintaining consistent behavior.

Usage

cat_to_filepath_function_factory(filepath)

Arguments

filepath

The path to the file to write to

Value

A function that writes to the specified file with parameters:

  • ...: Content to write

  • sep: Separator between elements (default: "")

  • append: Whether to append to existing content (default: TRUE)


org documentation built on April 9, 2026, 9:08 a.m.