Skip to content

Instantly share code, notes, and snippets.

@npjc
Created August 17, 2015 21:37
Show Gist options
  • Save npjc/adfc5d2a33f0fb05a273 to your computer and use it in GitHub Desktop.
Save npjc/adfc5d2a33f0fb05a273 to your computer and use it in GitHub Desktop.
  • use a cache environment in aaa_cache.R:

    • bg_ws for biogrid webservice.
    • use a function such as bg_ws_build() which assigns useful variables
      • url
      • uris (service endpoints)
      • access key
      • parameters
  • in zzz.R:

.onLoad <- function(...) {
  bg_ws_build()
  packageStartupMessage("biogridr: Beginner developer minions about. ",
                        "Be on the lookout. ")
}
  • name exported functions with common prefix: bg_ for biogridr functions.

  • use small internal functions starting with ratify_ to validate inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment