knitr::opts_chunk$set(echo = TRUE)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
options(tibble.print_min = 5, tibble.print_max = 5)

InstallBitbucketServer

It installs R Package in BitBucket Dev Server of Nielsen Data Science. It is based on devtools package, with a few tweaks.

Installation

You can install the customized version of devtools for install_bitbucket_server() from my personal GitHub with:

``` {r eval = FALSE} install.packages("devtools") devtools::install_github("younhak/InstallBitbucketServer", build_vignettes = TRUE)

## Usage

### Pre-requisitie: Create personal token in Bitbucket Server

User Guide of Atlassian: [link](https://confluence.atlassian.com/bitbucketserver057/personal-access-tokens-945543529.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash#Personalaccesstokens-usingpersonalaccesstokens)

1. Access your Bitbucket __DEV__ server
2. Click Avatar on your right top edge
3. Click [Manage account] in drill-down menu
4. Click [Personal access tokens] in right hand side navigation bar
5. Click [Create a token] button
6. Enther the [Token name] (R, your name, and so on)
7. Click [Create] butten
8. __[IMPORTANT]__ Copy and Paste your token in safe place _(You will not be able to view this token again)_
9. Click [Continue]

![Figure 2. Token Creation](man/figures/token.png)

### Installation of a package

After run the function, the pop-up windows will be generated. Please __enter your personal token__ of Bitbucket for connect the server.

```r
# Please don't import this package, because of confliction with original devtools
# Just use NAMESPACE::function()
InstallBitBucketServer::install_bitbucket_server(
  projects = "project_name", 
  repos = "repository_name", 
  host = "host_server_name",  # host is "https://hostserver.com/bitbucket"
  build_vignette = TRUE
)
# Enter your personal token in the pop-up windows


younhak/InstallBitbucketServer documentation built on May 17, 2019, 1:31 p.m.