Skip to content

Commit d0f1e8e

Browse files
committed
Initial commit of Mason template
0 parents  commit d0f1e8e

15 files changed

+202
-0
lines changed

.Rbuildignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
^.*\.Rproj$
2+
^\.Rproj\.user$
3+
^Makefile$
4+
^README.Rmd$
5+
^.travis.yml$
6+
^appveyor.yml$

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData

.travis.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Sample .travis.yml file for use with metacran/r-builder
2+
## See https://github.com/metacran/r-builder for details.
3+
4+
language: c
5+
sudo: required
6+
7+
before_install:
8+
- curl -OL https://raw.githubusercontent.com/metacran/r-builder/master/pkg-build.sh
9+
- chmod 755 pkg-build.sh
10+
- ./pkg-build.sh bootstrap
11+
12+
install:
13+
- ./pkg-build.sh install_deps
14+
15+
script:
16+
- ./pkg-build.sh run_tests
17+
18+
after_failure:
19+
- ./pkg-build.sh dump_logs
20+
21+
notifications:
22+
email:
23+
on_success: change
24+
on_failure: change
25+
26+
env:
27+
matrix:
28+
- RVERSION=oldrel
29+
- RVERSION=release
30+
- RVERSION=devel
31+

DESCRIPTION

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Package: franc
2+
Title: Detect the Language of Text
3+
Version: 1.0.0
4+
Author: Titus Wormer, , Maciej Ceglowski, Jacob R. Rideout, and Kent S. Johnson.
5+
Maintainer: Gabor Csardi <[email protected]>
6+
Description: TODO
7+
License: MIT + file LICENSE
8+
LazyData: true
9+
URL: https://github.com/gaborcsardi/franc
10+
BugReports: https://github.com/gaborcsardi/franc/issues
11+
Suggests:
12+
testthat

LICENSE

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
YEAR:
2+
COPYRIGHT HOLDER: Titus Wormer, , Maciej Ceglowski, Jacob R. Rideout, and Kent S. Johnson.

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
all: README.md
3+
4+
README.md: README.Rmd
5+
Rscript -e "library(knitr); knit('$<', output = '$@', quiet = TRUE)"

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Generated by roxygen2 (4.1.1): do not edit by hand

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# 1.0.0
3+
4+
First public release.

R/package.R

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
#' Detect the Language of Text
3+
#'
4+
#' TODO
5+
#'
6+
#' @docType package
7+
#' @name franc
8+
NULL

README.Rmd

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
```{r, setup, echo = FALSE, message = FALSE}
3+
knitr::opts_chunk$set(
4+
comment = "#>",
5+
tidy = FALSE,
6+
error = FALSE,
7+
fig.width = 8,
8+
fig.height = 8)
9+
```
10+
11+
# franc
12+
13+
> Detect the Language of Text
14+
15+
[![Linux Build Status](https://travis-ci.org/gaborcsardi/franc.svg?branch=master)](https://travis-ci.org/gaborcsardi/franc)
16+
17+
[![Windows Build status](https://ci.appveyor.com/api/projects/status/github/gaborcsardi/franc?svg=true)](https://ci.appveyor.com/project/gaborcsardi/franc)
18+
[![](http://www.r-pkg.org/badges/version/franc)](http://www.r-pkg.org/pkg/franc)
19+
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/franc)](http://www.r-pkg.org/pkg/franc)
20+
21+
22+
TODO
23+
24+
## Installation
25+
26+
```{r eval = FALSE}
27+
devtools::install_github("gaborcsardi/franc")
28+
```
29+
30+
## Usage
31+
32+
```{r}
33+
library(franc)
34+
```
35+
36+
## License
37+
38+
MIT + file LICENSE © [Titus Wormer, , Maciej Ceglowski, Jacob R. Rideout, and Kent S. Johnson.](https://github.com/gaborcsardi).

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
# franc
3+
4+
> Detect the Language of Text
5+
6+
[![Linux Build Status](https://travis-ci.org/gaborcsardi/franc.svg?branch=master)](https://travis-ci.org/gaborcsardi/franc)
7+
8+
[![Windows Build status](https://ci.appveyor.com/api/projects/status/github/gaborcsardi/franc?svg=true)](https://ci.appveyor.com/project/gaborcsardi/franc)
9+
[![](http://www.r-pkg.org/badges/version/franc)](http://www.r-pkg.org/pkg/franc)
10+
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/franc)](http://www.r-pkg.org/pkg/franc)
11+
12+
13+
TODO
14+
15+
## Installation
16+
17+
```r
18+
devtools::install_github("gaborcsardi/franc")
19+
```
20+
21+
## Usage
22+
23+
```r
24+
library(franc)
25+
```
26+
27+
## License
28+
29+
MIT + file LICENSE © [Titus Wormer, , Maciej Ceglowski, Jacob R. Rideout, and Kent S. Johnson.](https://github.com/gaborcsardi).

appveyor.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# DO NOT CHANGE the "init" and "install" sections below
2+
3+
# Download script file from GitHub
4+
init:
5+
ps: |
6+
$ErrorActionPreference = "Stop"
7+
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
8+
Import-Module '..\appveyor-tool.ps1'
9+
10+
install:
11+
ps: Bootstrap
12+
13+
# Adapt as necessary starting from here
14+
15+
build_script:
16+
- travis-tool.sh install_deps
17+
18+
test_script:
19+
- travis-tool.sh run_tests
20+
21+
on_failure:
22+
- travis-tool.sh dump_logs
23+
24+
artifacts:
25+
- path: '*.Rcheck\**\*.log'
26+
name: Logs
27+
28+
- path: '*.Rcheck\**\*.out'
29+
name: Logs
30+
31+
- path: '*.Rcheck\**\*.fail'
32+
name: Logs
33+
34+
- path: '*.Rcheck\**\*.Rout'
35+
name: Logs
36+
37+
- path: '\*_*.tar.gz'
38+
name: Bits
39+
40+
- path: '\*_*.zip'
41+
name: Bits

man/package.Rd

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
% Generated by roxygen2 (4.1.1): do not edit by hand
2+
% Please edit documentation in R/package.R
3+
\docType{package}
4+
\name{ franc }
5+
\alias{ franc }
6+
\alias{ franc }
7+
\title{ Detect the Language of Text }
8+
\description{
9+
TODO
10+
}

tests/testthat.R

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
library(testthat)
2+
library(franc)
3+
4+
test_check("franc")

tests/testthat/test.R

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
context("franc")
3+
4+
test_that("franc works", {
5+
6+
expect_true(TRUE)
7+
8+
})

0 commit comments

Comments
 (0)