This package is deprecated and unmainted due to of a lack of time of my part. Feel free to fork it.
vartors is an R package and an acronym for VARiable definition TO R Script skeleton. The idea is to describe explicitly the variables by defining their names, types, levels, labels and others caracteristics and then automaticaly produce R script following a template. It could help to import and clean up data from simple databases.
You could install vartors from a CRAN repository with :
Or you can download it from GitHub if you have already the
devtools::install_github(repo="vartors", username ="jomuller", ref="master")
The development version can be installed from GitHub with the
devtools by typing this line in R :
devtools::install_github(repo="vartors", username ="jomuller", ref="dev")
Install the devtools
If you don't have
devtools installed, follow these steps :
- If you are using Windows, you have to install the Rtools
- Install the
- Install the GitHub version of
vartorsas describe above
If you are behind a proxy you have to add the following lines before :
library(httr) set_config( use_proxy( url = "proxy_url", # Change with your proxy URL port = 8080, username = "user", # Change with your login password = "password" # Change with your password ))
Read the documentation with
The main functions are
write_file. Helpers function are
You are welcome to open issues on the issue page in GitHub.
You are welcome to fork to improve the code and the documentation.
Follow the milestones of this GitHub project to show the release plan.
vartors was created to speed-up the boring and important importation to R phase in context of the methodology consultations. These methodology consultations are an important part of my daily work. The idea is to help physicians of my hospital to process their data and make great analysis. In our workflow, the physician must come with a database (mainly an Excel file), a description of the variables and a good question. For the moment, we spend too much time to clean up data and not enough to analyse it. That's where `vartors may help.