knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Some useful functions for working with our database (functions may be added latter). This pakcage has the following functions:
con_start()
my_libs()
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")
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.