Skip to contents

Ignore specific files by git and R build.

Usage

use_ignore(file = NULL, path = NULL)

Arguments

file

character File to ignore.

path

character Path to the file.

Value

invisibly returns 0.

Examples

datapackage_skeleton(name="test",path = tempdir())
#>  Creating '/tmp/Rtmpw1g9qC/test/'
#>  Setting active project to '/tmp/Rtmpw1g9qC/test'
#>  Creating 'R/'
#>  Writing 'DESCRIPTION'
#> Package: test
#> Title: What the Package Does (One Line, Title Case)
#> Version: 0.0.0.9000
#> Authors@R (parsed):
#>     * First Last <first.last@example.com> [aut, cre] (YOUR-ORCID-ID)
#> Description: What the package does (one paragraph).
#> License: `use_mit_license()`, `use_gpl3_license()` or friends to
#>     pick a license
#> Encoding: UTF-8
#> Roxygen: list(markdown = TRUE)
#> RoxygenNote: 7.3.1
#>  Writing 'NAMESPACE'
#>  Setting active project to '/tmp/Rtmpw1g9qC/datatest'
#>  Setting active project to '/tmp/Rtmpw1g9qC/test'
#>  Added DataVersion string to 'DESCRIPTION'
#>  Creating 'data-raw/'
#>  Creating 'data/'
#>  Creating 'inst/extdata/'
#>  configured 'datapackager.yml' file
use_ignore("foo", ".")
#>  Adding '^\\./foo$' to '.Rbuildignore'
#>  Adding 'foo' to '.gitignore'