Git Product home page Git Product logo

pkg_primer's Introduction

R package primer: a minimal tutorial

R packages are the best way to distribute R code and documentation, and, despite the impression that the official manual (Writing R Extensions) might give, they are really are rather simple to create.

Even for code that you don't plan to distribute, you'll find it is easier to keep track of your own personal R functions if they are in a package. And it's good to write documentation, even if it's just for your future self.

Hadley Wickham is writing a book about the basics of R packages. You might just jump straight there. But there is value in having a diversity of resources, so I thought I'd go ahead and write my own minimal tutorial.

View the thing here.


To the extent possible under law, Karl Broman has waived all copyright and related or neighboring rights to โ€œR package primerโ€. This work is published from the United States.
CC0

pkg_primer's People

Contributors

kbroman avatar mdozmorov avatar seankross avatar tappek avatar youcc 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  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  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  avatar  avatar  avatar  avatar

pkg_primer's Issues

it's not clear how to install to a local directory

Thanks for your guide! I've found it helpful for coming to grips with the package structure, but after reading it, it's not clear how to actually install my package. As far as I can gather R CMD install only works if you either are developing the package inside of the system library (is that safe?) or you have root permissions. Guessing how to do this from reading an obsolete manual for R CMD install on the web, I tried installing my package following:

http://stackoverflow.com/questions/29376107/trouble-installing-an-r-package-using-r-cmd-install

Perhaps giving an example for this common use case would be worth including?

CC Licenses: CC0?

Karl,

really nice job on the primer. I am going to point a lot of people here.

Had a question about the use of Creative Commons for code. First, a caveat. I know very little about licensing packages. With that said, I have been using CC0 for my packages as of late. From what I have read it isn't technically a license, but a public domain declaration.

Are there any issues you are aware of with using CC0 for packages?

Cheers,
Jeff

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.