Skip to contents

Add necessary files for any R project

Usage

add_kit_project(project_path = ".", name_licence, type_licence)

Arguments

project_path

project_path

name_licence

Name for the licence

type_licence

should be a function, example : type_licence = usethis::use_proprietary_license

Value

Side Effect, add new files :

  • gitattributes

  • NEWS.md

Examples

withr::with_tempdir({
  project_path <- getwd()
  usethis::create_project(path = project_path, open = FALSE)
  add_kit_project(
    project_path,
    name_licence = "Bob",
    type_licence = usethis::use_proprietary_license
  )
})
#>  Setting active project to '/tmp/Rtmpnpj01j/file173e12871d7d'
#>  Creating 'R/'
#>  Writing a sentinel file '.here'
#>  Build robust paths within your project via `here::here()`
#>  Learn more at <https://here.r-lib.org>
#>  Setting active project to '<no active project>'
#>  Setting active project to '/tmp/Rtmpnpj01j/file173e12871d7d'
#>  Writing 'LICENSE'
#>  Writing 'NEWS.md'
#>  Setting active project to '<no active project>'
#> Kit project created