The goal of Rbduk is to provide BDUK analysts with a centralised set of repeatable functions for BDUK-specific R work.
For full doccumentations of all functions in the package please read the
vignette
or run vignette("Vignette",package="Rbduk")
to view it within R.
Ordinarily, a package would be installed either from a communal file store, or from a git repository. As our VM’s do not connect to the T:// drive that we share, and packages cannot be installed from a Google Source Repository, we have to do this manually:
- Within your VM, go to the ‘Files’ pane (next to ‘Plots’,‘Packages’, etc) and navigate to to the home directory by clicking the house symbol.!
- Within the same pane, click the upload button.
- Select “Choose File”, navigate to the T:// drive, and select the file Rbduk.tar.gz. If you do not have access to the T:// drive, visit it is also stored on the Data and Modelling team’s google drive. Download the file to your computer from here, and upload in the same fashion.
- Within the console pane, enter
install.packages("dplyr","stringr","grid","ggplot2","bigrquery","geojsonsf","sf","shinyBS")
to install the packages dependencies. - Open the terminal tab (next to the console tab) within Rstudio.
- Type
cd /home/dcms
and press enter. - Type
R CMD INSTALL Rbduk.tar.gz
and press enter.
The package should now be installed, and to load it use library(Rbduk)
as you would any other package.
For any additional support, to contribute, or to suggest things you would like to see, please contact [email protected].
Do not push any code into the repository unless it has been quality assured first.