/study-wrangler

Code to keep study data tidy

Primary LanguageDockerfileApache License 2.0Apache-2.0

README

study.wranger R package for tidying data in a way compatible with VEuPathDB workflows for EDA loading.

To build a docker image:

docker build -t study-wrangler .

To run in docker:

docker run --rm -ti -e PASSWORD=somepassword -p 8787:8787 study-wrangler
# Then in your web browser navigate to localhost:8787 and login with "rstudio" and "somepassword"

To add R functions to the repo (using docker):

docker run --rm -ti -v /home/$user/project_home/study-wrangler:/study.wrangler -e PASSWORD=somepassword -p 8787:8787 jbrestel/study-wrangler
# Then in your web browser navigate to localhost:8787 and login with "rstudio" and "somepassword"

# at the RStudio prompt
> library(devtools)
> load_all("/study.wrangler")

# add functions to R directory in this repo and then:
> document("/study.wrangler")


# see devtools documentation on best practices for making functions and documentation

Alternatively, should also be able to install into local RStudio using “remotes” package > remotes::install_github(‘VEuPathDB/study-wrangler’,’0.0.0.9000’)