use_template: Download 'shidashi' templates from 'Github'

View source: R/rstudio.R

use_templateR Documentation

Download 'shidashi' templates from 'Github'

Description

Download 'shidashi' templates from 'Github'

Usage

use_template(
  path,
  user = "dipterix",
  theme = "AdminLTE3",
  repo = "shidashi-templates",
  branch = "main",
  ...
)

Arguments

path

the path to create 'shidashi' project

user

'Github' user name

theme

the theme to download

repo

repository if the name is other than 'shidashi-templates'

branch

branch name if other than 'main' or 'master'

...

ignored

Details

To publish a 'shidashi' template, create a 'Github' repository called 'shidashi-templates', or fork the built-in templates. The theme is the sub-folder of the template repository.

An easy way to use a template in your project is through the 'RStudio' project widget. In the 'RStudio' navigation bar, go to "File" menu, click on the "New Project..." button, select the "Create a new project" option, and find the item that creates 'shidashi' templates. Use the widget to set up template directory.

Value

the target project path


shidashi documentation built on April 4, 2023, 5:16 p.m.