project: create a new project and return its 'project' object

Description Usage Arguments

View source: R/project.R

Description

create a new project and return its project object

Usage

1
2
3
4
5
project(name, path = getwd(), dir = name, repo = name,
  server = "gitlab.com",
  gitlab_token = read_token("local/gitlab_token"), drive_proj = name,
  drive_path = "projects", drive_cache = "local/drive_cache",
  user = getOption("gitlab_user"))

Arguments

name

project name

path

local project location (parent directory)

dir

project directory (name by convention)

repo

gitlab repository name (name by convention)

server

gitlab server url

gitlab_token

gitlab personal access token

drive_proj

google drive location

drive_path

google drive projects path

drive_cache

google drive cache location

before this function can be called, there must be a directory called local in the working directory containing two authorization files

* gitlab_token a personal access token from gitlab with full api scope * drive_cache a binary cache file authorizing googledrive to access your drive. this can be created by running: googledrive::drive_auth(cache = "local/drive_cache")


mlgrm/projectr documentation built on May 22, 2019, 2:20 p.m.