Code Monkey home page Code Monkey logo

pkgkitten's Introduction

pkgKitten: Create packages that purr

CI License CRAN Dependencies Debian package Downloads Last Commit Documentation

a kitten

The base R function package.skeleton() is very useful for creating new packages for R. It is also very upsetting as it has been producing the same files which trigger R CMD check in the exact same way.

And as something terrible happens each time R CMD check barks, this package offers a wrapper function kitten() which leaves an adorable little package behind which does not upset R CMD check.

So just think of the kittens.

Installation

The package is on CRAN and can be installed via a standard

install.packages("pkgKitten")

Documentation

Package documentation, help pages, and more is also available here.

Author

Dirk Eddelbuettel

License

GPL (>= 2)

pkgkitten's People

Contributors

aecoleman avatar barryrowlingson avatar benmarwick avatar daviddalpiaz avatar eddelbuettel avatar joshobrien avatar sjp avatar tappek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pkgkitten's Issues

Argument to avoid generating hello* files

When writing a script based on kitten to generate a package one typically wants to delete the hello* files that it generates and that involves extra steps. Would be desirable to have an argument that avoids generating them.

kitten(hello = FALSE)

Demo stops on windows machine

Hi,

just tried the package, and it stops.

demo("simpleDemo", package = "pkgKitten")
....
checking for unstated dependencies in examples ... WARNING
Warnung: Parse-Fehler in Datei 'simpleTest-Ex.R':
38:11: Unerwartete(s) Symbol
37: 
38: ~~ simple examples
              ^
* checking examples ... ERROR
Running examples in 'simpleTest-Ex.R' failed
The error most likely occurred in:

> ### Name: simpleTest-package
> ### Title: What the package does (short line) ~~ package title ~~
> ### Aliases: simpleTest-package simpleTest
> ### Keywords: package
> 
> ### ** Examples
> 
> ~~ simple examples of the most important functions ~~
Error: unexpected symbol in "~~ simple examples"
Execution halted
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] pkgKitten_0.1.1

loaded via a namespace (and not attached):
[1] tools_3.1.1

specify R script(s)

An argument that allows one to specify the names(s) of R script(s) to get the functions from would be useful for converting a script to a package.

library(pkgKitten)
library(devtools)

kitten("myPackage", author = "me", script = "myScript.R")
setwd("myPackage")
build()
install()

library(myPackage)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.