add_to_rdepsignore: Add to the .rdepsignore file

View source: R/add_to_rdepsignore.R

add_to_rdepsignoreR Documentation

Add to the .rdepsignore file

Description

This function adds files/folders to the .rdepsignore file. The .rdepsignore file is used by rdeps to ignore files or folders when detecting dependencies. This plain text file contains a list of files/folders to be ignored.

This file will be created if it does not exist and will be added to the .Rbuildignore file.

Usage

add_to_rdepsignore(x)

Arguments

x

A character vector. One or several file/folder names to be added to the .rdepsignore. This argument is mandatory.

Value

No return value.

Examples

## Not run: 
add_to_rdepsignore("analyses/misc")
add_to_rdepsignore("analyses/old_scripts.R")

## End(Not run)

rdeps documentation built on Nov. 5, 2025, 5:28 p.m.