Browse Source

R package repo initialization complete

latest
boB Rudis 2 years ago
parent
commit
8d7b1d2512
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
13 changed files with 147 additions and 0 deletions
  1. +13
    -0
      .Rbuildignore
  2. +1
    -0
      .codecov.yml
  3. +8
    -0
      .gitignore
  4. +6
    -0
      .travis.yml
  5. +24
    -0
      DESCRIPTION
  6. +4
    -0
      NAMESPACE
  7. +2
    -0
      NEWS.md
  8. +12
    -0
      R/psl-package.R
  9. +32
    -0
      README.Rmd
  10. +16
    -0
      man/psl.Rd
  11. +21
    -0
      psl.Rproj
  12. +2
    -0
      tests/test-all.R
  13. +6
    -0
      tests/testthat/test-psl.R

+ 13
- 0
.Rbuildignore View File

@@ -0,0 +1,13 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.travis\.yml$
^README\.*Rmd$
^README\.*html$
^NOTES\.*Rmd$
^NOTES\.*html$
^\.codecov\.yml$
^README_files$
^doc$
^tmp$
^notes$
^\.gitlab-ci\.yml$

+ 1
- 0
.codecov.yml View File

@@ -0,0 +1 @@
comment: false

+ 8
- 0
.gitignore View File

@@ -0,0 +1,8 @@
.DS_Store
.Rproj.user
.Rhistory
.RData
.Rproj
src/*.o
src/*.so
src/*.dll

+ 6
- 0
.travis.yml View File

@@ -0,0 +1,6 @@
language: R
sudo: false
cache: packages

after_success:
- Rscript -e 'covr::codecov()'

+ 24
- 0
DESCRIPTION View File

@@ -0,0 +1,24 @@
Package: psl
Type: Package
Title: psl title goes here otherwise CRAN checks fail
Version: 0.1.0
Date: 2018-09-06
Authors@R: c(
person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5670-2640"))
)
Maintainer: Bob Rudis <bob@rud.is>
Description: A good description goes here otherwise CRAN checks fail.
URL: https://gitlab.com/hrbrmstr/psl
BugReports: https://gitlab.com/hrbrmstr/psl/issues
Encoding: UTF-8
License: AGPL
Suggests:
testthat,
covr
Depends:
R (>= 3.2.0)
Imports:
httr,
jsonlite
RoxygenNote: 6.0.1.9000

+ 4
- 0
NAMESPACE View File

@@ -0,0 +1,4 @@
# Generated by roxygen2: do not edit by hand

import(httr)
importFrom(jsonlite,fromJSON)

+ 2
- 0
NEWS.md View File

@@ -0,0 +1,2 @@
0.1.0
* Initial release

+ 12
- 0
R/psl-package.R View File

@@ -0,0 +1,12 @@
#' ...
#'
#' - URL: <https://gitlab.com/hrbrmstr/psl>
#' - BugReports: <https://gitlab.com/hrbrmstr/psl/issues>
#'
#' @md
#' @name psl
#' @docType package
#' @author Bob Rudis (bob@@rud.is)
#' @import httr
#' @importFrom jsonlite fromJSON
NULL

+ 32
- 0
README.Rmd View File

@@ -0,0 +1,32 @@
---
output: rmarkdown::github_document
---

# psl

## Description

## What's Inside The Tin

The following functions are implemented:

## Installation

```{r eval=FALSE}
devtools::install_github("hrbrmstr/psl")
```

```{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE}
options(width=120)
```

## Usage

```{r message=FALSE, warning=FALSE, error=FALSE}
library(psl)

# current verison
packageVersion("psl")

```


+ 16
- 0
man/psl.Rd View File

@@ -0,0 +1,16 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psl-package.R
\docType{package}
\name{psl}
\alias{psl}
\alias{psl-package}
\title{...}
\description{
\itemize{
\item URL: \url{https://gitlab.com/hrbrmstr/psl}
\item BugReports: \url{https://gitlab.com/hrbrmstr/psl/issues}
}
}
\author{
Bob Rudis (bob@rud.is)
}

+ 21
- 0
psl.Rproj View File

@@ -0,0 +1,21 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

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

RnwWeave: Sweave
LaTeX: pdfLaTeX

StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageBuildArgs: --resave-data
PackageRoxygenize: rd,collate,namespace

+ 2
- 0
tests/test-all.R View File

@@ -0,0 +1,2 @@
library(testthat)
test_check("psl")

+ 6
- 0
tests/testthat/test-psl.R View File

@@ -0,0 +1,6 @@
context("minimal package functionality")
test_that("we can do something", {

#expect_that(some_function(), is_a("data.frame"))

})

Loading…
Cancel
Save