Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jun 13, 2018
0 parents commit 159a717
Show file tree
Hide file tree
Showing 15 changed files with 239 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
^\.travis\.yml$
^.*\.Rproj$
^\.Rproj\.user$
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
docs
1 change: 1 addition & 0 deletions .netlify
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"site_id":"4b95fe2c-2ea1-4046-b0ea-a514b1a63c46","path":"docs"}
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
sudo: false
cache:
packages: true
directories:
- _bookdown_files
- $HOME/.npm

before_install:
- npm install netlify-cli -g

script:
- Rscript -e 'bookdown::render_book("index.Rmd")'

deploy:
provider: script
script: netlify deploy -t $NETLIFY_PAT
skip_cleanup: true
5 changes: 5 additions & 0 deletions 01-one.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Chapter One Topic

## A Section

Bacon ipsum dolor amet pork belly andouille alcatra ball tip spare ribs landjaeger jowl flank beef shoulder tri-tip hamburger sausage beef ribs turducken. Short ribs salami bresaola short loin spare ribs beef ribs meatball corned beef cow swine. Pork porchetta picanha hamburger. Fatback capicola pork belly ham ground round, bacon cupim shank meatloaf burgdoggen porchetta venison tongue frankfurter.
5 changes: 5 additions & 0 deletions 02-two.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Chapter Two Topic

## A Section

Cat is love, cat is life meeeeouw for mrow, please stop looking at your phone and pet me but my water bowl is clean and freshly replenished, so i'll drink from the toilet. Pet my belly, you know you want to; seize the hand and shred it! i love cuddles hunt by meowing loudly at 5am next to human slave food dispenser so claw your carpet in places everyone can see - why hide my amazing artistic clawing skills? claws in your leg. Throwup on your pillow lick master's hand at first then bite because im moody or refuse to drink water except out of someone's glass but hiss at vacuum cleaner meow go back to sleep owner brings food and water tries to pet on head, so scratch get sprayed by water because bad cat nya nya nyan.
13 changes: 13 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Package: principles
Title: Tidyverse principles
Version: 1.0.0
Authors@R: c(
person("Tidyverse", "Team", , "[email protected]", c("aut", "cre"))
)
Depends:
R (>= 3.1.0)
Imports:
bookdown,
rmarkdown
URL: https://github.com/tidyverse/principles
BugReports: https://github.com/tidyverse/principles/issues
109 changes: 109 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[![Travis build status](https://travis-ci.org/tidyverse/style.svg?branch=master)](https://travis-ci.org/tidyverse/style)

An R Style Guide written in **bookdown** (https://github.com/rstudio/bookdown).

1 change: 1 addition & 0 deletions _bookdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output_dir: "docs"
3 changes: 3 additions & 0 deletions _build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"
10 changes: 10 additions & 0 deletions _output.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bookdown::gitbook:
css: style.css
config:
toc:
before: |
<li><a href="./">R Style Guide</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
edit: https://github.com/tidyverse/style/edit/master/%s
sharing: no
14 changes: 14 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "Tidyverse package development principles"
author: ["Tidyverse Team"]
site: bookdown::bookdown_site
output: bookdown::gitbook
github-repo: tidyverse/style
documentclass: book
---

# Welcome {-}

A place to document (and hash out) development principles for packages in the [tidyverse](http://tidyverse.org).

A complement to <http://style.tidyverse.org>.
16 changes: 16 additions & 0 deletions principles.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Custom
CustomScriptPath: _build.sh
30 changes: 30 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}

.book .book-header h1 {
opacity: 1;
text-align: left;
}

#header .title {
margin-bottom: 0em;
}
#header h4.author {
margin: 0;
color: #666;
}
#header h4.author em {
font-style: normal;
}

0 comments on commit 159a717

Please sign in to comment.