R/onLoad.r

Defines functions onLoad onAttach

.onLoad <- function(libname, pkgname) {
    options(dvn = 'https://thedata.harvard.edu/dvn/') # set default dataverse
    options(dvn.user = '') # initialize dataverse username option
    options(dvn.pwd = '') # initialize dataverse password option
}

.onAttach <- function(libname, pkgname) {
  packageStartupMessage(
   "Note: 'dvn' only works with Dataverse 3 servers.",
   "For servers using Dataverse >= v4.0, please use",
   "the 'dataverse' package, available from:",
   "https://github.com/IQSS/dataverse-client-r")
}

Try the dvn package in your browser

Any scripts or data that you put into this service are public.

dvn documentation built on May 29, 2017, 5:53 p.m.