Skip to content

Commit

Permalink
First demo commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hyginn committed Feb 16, 2017
0 parents commit ce6ad84
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
^.*\.Rproj$
^\.Rproj\.user$
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
13 changes: 13 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Package: ekplektoR
Type: Package
Title: Network Analysis for Cell- and Systems Biology
Version: 0.1.0
Author: Boris Steipe et al.
Maintainer: Boris Steipe <[email protected]>
Description: ekplektor combines a workflow for affected-subnetwork discovery in
cancer genome data and analysis tools.
License: GPL-3
Encoding: UTF-8
LazyData: true
Suggests: testthat
RoxygenNote: 6.0.1
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exportPattern("^[[:alpha:]]+")
12 changes: 12 additions & 0 deletions R/hello.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# hello.R
#
# This is an example function which prints 'Hello, world!' and returns the first
# seven Fibonacci numbers.
#

hello <- function() {
print("Hello, world!")
return(c(1, 1, 2, 3, 5, 8, 13))
}

# [END]
22 changes: 22 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ekplektoR

----------------------------------------------
This package follows the structure and process
suggested by Hadley Wickham in:


R Packages
http://r-pkgs.had.co.nz/

-----------------------------------------------
Some useful keyboard shortcuts for package authoring:

Build and Reload Package: 'Cmd + Shift + B'
Check Package: 'Cmd + Shift + E'
Test Package: 'Cmd + Shift + T'
-----------------------------------------------

Run before every commit:
library(devtools)
devtools::check() # or Cmd + Shift + E
DO NOT SUBMIT CODE that does not pass without error, warnings and notes.
19 changes: 19 additions & 0 deletions ekplektoR.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

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

RnwWeave: knitr
LaTeX: XeLaTeX

StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
12 changes: 12 additions & 0 deletions man/hello.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\name{hello}
\alias{hello}
\title{Hello, World!}
\usage{
hello()
}
\description{
Prints 'Hello, world!'.
}
\examples{
hello()
}
4 changes: 4 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
library(testthat)
library(ekplektoR)

test_check("ekplektoR")
10 changes: 10 additions & 0 deletions tests/testthat/testHello.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# testHello.R
#
#
context("Demo test")

test_that("hello.R returns a vector with the first seven Fibonacci numbers", {
expect_equal(sum(hello()), 33)
})

# [END]

0 comments on commit ce6ad84

Please sign in to comment.