knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

conStart

Some useful functions for working with our database (functions may be added latter). This pakcage has the following functions:

The first creates a connection to either "analyse" or "patient_kval" (defaults to "analyse").
The second function attaches tidyverse, lubridate or also DBI, odbc and dbplyr.

To install this package first install the devtools pakcage:

install.pakcages("devtools")

And then:

devtools::install_github("AnalyseOgMetoder/conStart") 

If you are asked to update some packages and don't want to you can choose the number for "no", "none" etc. and press enter. Alternativly use:

devtools::install_github("AnalyseOgMetoder/conStart", upgrade = "never") 

con_start()

To create a connection object, use:

library(conStart)
con <- conStart::con_start() 

# Or with more typing: 

library(conStart)
con <- con_start() 

# To connect to Patient_kval use, e.g.:
con2 <- con_start("patient_kval")

To read the documentations use ?fun as in a normal package:

?con_start


davidbaniadam/conStart documentation built on Sept. 9, 2019, 6:15 a.m.