Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
abichat committed Apr 18, 2020
1 parent 84caa83 commit c6ff105
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
#' \item{(Sepal/Petal).(Length/Width)}{Numeric}
#' \item{Species}{Factor}
#' }
#' @examples
#' irishead
"irishead"
2 changes: 2 additions & 0 deletions R/joke.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#' @return The joke
#' @export
#' @importFrom dadjoke groan
#' @examples
#' joke()
joke <- function(){
groan()
}
9 changes: 7 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ navbar:

reference:
- title: Operations
desc: Basic operatuions
desc: Basic operations
contents:
- '`add`'
- title: Date
- '`add_cpp`'
- title: Display stuff
contents:
- '`print_date`'
- '`joke`'
- title: Data
contents:
- '`irishead`'
3 changes: 3 additions & 0 deletions man/irishead.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/joke.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ add_cpp(3, 4)
microbenchmark(add(100, 1000), add_cpp(100, 1000))
```

The Rcpp code is 3 to 4 times slower than the base R code!
The Rcpp code is much slower than the base R code!

0 comments on commit c6ff105

Please sign in to comment.