GithubHelp home page GithubHelp logo

2017-04-03-adv-r-progr-embl's Introduction

2017-04-03-adv-r-progr-embl's People

Contributors

laurentgatto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

2017-04-03-adv-r-progr-embl's Issues

Update the S4 objects used in Sequences?

I've made a few changes in the ROO teaching material:

  • use sequence() instead of seq()
  • changed id() into name()
  • don't re-declare S4 generics when S3 exists (this is now done automatically by R)

We should probably update the sequences package to reflect these changes at some point?

Package dependencies

Here is a list of all required packages:

assertthat
Biobase
covr
datasets
devtools
dplyr
formatR
ggplot2
ggvis
hexbin
log4r
magrittr
microbenchmark
msdata
MSnbase
mypackage
profvis
pRolocdata
pryr
readr
reshape2
roxygen2
RUnit
sequences
shiny
testthat
tidyverse

To install all of them, please run

pkgs <- c("assertthat", "Biobase", "covr", "datasets", "devtools",
          "devtools", "dplyr", "formatR", "ggplot2", "ggvis",
          "hexbin", "log4r", "magrittr", "microbenchmark", "msdata",
          "MSnbase", "mypackage", "profvis", "pRolocdata", "pryr",
          "readr", "reshape2", "roxygen2", "RUnit", "sequences",
          "shiny", "testthat", "tidyverse")
if (!require("BiocInstaller")) {
    ## try http:// if https:// URLs are not supported
    source("https://bioconductor.org/biocLite.R")
}  
library("BiocInstaller")
biocLite(pkgs)

Material in the intro

The material in the introduction contains (so far)

  • style (from the defensive programming section)
  • writing a function (small part from functional programming)
  • apply (small part from functional programming)

My suggestion would be to remove the style section from defensive programming (maybe just add a sentence to remind that this is important in the frame of good programming) and leave the two other topics, as they are short and part of more related content.

Cc: @rstojnic

Javadoc in R?

First at all: Very nice course! You have done a great job!
For the next courses it would be nice to have an example of an "good practice" function example. You showed a lot of nice examples, but is there a common way?
I missed the in java called Javadoc (if this exists). Is there a common way in R for function documentation (functions which are not part of a package. For this you can use roxygen2 as you mentioned).

Testing material

Quite a bit of content from debug (defensive programming) material overlaps with the
testing section. As the second morning is already quite busy, I suggest to just keep bullet points as reminder in the debugging part.

Cc: @rstojnic

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.