Skip to content

Instantly share code, notes, and snippets.

@seandavi
seandavi / README.md
Last active July 8, 2020 14:31
Run a Bioconductor Workshop docker image on Google Cloud Platform

Run a Bioconductor Workshop on a Google Cloud Instance

To run one of the workshops for Bioc2020, follow these steps after determining which workshop you'd like to run and finding the docker image name. Substitute the docker image name below for tidytranscriptomics if desired.

Prereqs

  • A google cloud platform account (which you can create with $300 free credit if you don't have one)
  • Installed google cloud sdk (the gcloud command)
// ----- count.c
// build with R CMD SHLIB count.c (or put it in the package, w/e)
#include <R.h>
#include <Rinternals.h>
SEXP colsum_which_eq0(SEXP nrows_, SEXP ncols_, SEXP J_)
{
SEXP ret;
const int nrows = INTEGER(nrows_)[0];
@jennybc
jennybc / r-fcsn-in-wild-search.md
Last active January 6, 2020 08:09
Search for "natural" usage of a function across all CRAN packages

What if a function in a package has no examples? Or is poorly exampled? Wouldn't it be nice to find functioning instances of it "in the wild"?

Via Twitter, Noam Ross taught me a clever way to do such searches on GitHub. Put this into the GitHub search box to see people using the llply() function from plyr:

"llply" user:cran language:R

Or just click here.

@rmflight
rmflight / post-commit
Last active March 29, 2024 19:43
useful commit hooks for R package dev
#!/path/2/Rscript
# License: CC0 (just be nice and point others to where you got this)
# Author: Robert M Flight <[email protected]>, github.com/rmflight
#
# This is a post-commit hook that after a successful commit subsequently increments the package version in DESCRIPTION
# and commits that. Analogous to the pre-commit at https://gist.github.com/rmflight/8863882, but useful if you only have
# good reasons for not doing it on the pre-commit.
#
# To install it, simply copy this into the ".git/hooks/post-commit" file of your git repo, change /path/2/Rscript, and make
@hadley
hadley / .gitignore
Last active February 25, 2024 02:10
Benchmark different ways of reading a file
.Rproj.user
.Rhistory
.RData
*.Rproj
*.html
@arq5x
arq5x / acknowledgements.txt
Last active December 21, 2015 09:59
A collection of both popular and lesser known biographies, autobiographies and histories of scientific figures and their discoveries. Focused primarily on biology and genetics. This is largely a collection of responses to a query on twitter.
Thanks to @Adrian_H, @RoryKirchner, @genetics_blog,
@leonidkrugliak, @Graham_Coop, @yokofakun,
@pathogenomenick, @caseybergman, @Jalfoldi,
@Paul_R_Johnston, @gknoProject, @David_Dobbs,
@vsbuffalo, @robinhenig, @nccomfort,
@GholsonLyon, @notSoJunkDNA, @neilfws,
@rovingpencil, @rtraborn
In addition, please refer to Casey Bergman's collection of other books:
http://www.librarything.com/catalog/xylem&tag=genetics&collection=-1
@mbostock
mbostock / .block
Last active April 19, 2025 08:19
The Gist to Clone All Gists
license: gpl-3.0