Giter Club home page Giter Club logo

consultthat's Introduction

consultthat

Consultthat provides tools to streamline your consulting projects from within R. While there's some great issue trackers, time keeping systems and other tools to use out there for these issues: if your main workflow is in R, then it's sometimes more efficient to manage your project within R too.

Building on the tools provided by usethis:consultthat.

Installation

You can install the test version of the package from Github:

install.packages("devtools") # you only need this if you don't have devtools already
library(devtools) 
install_github("stephdesilva/consultthat") # install the package
library(consultthat) # use the package

Starting a consulting project

Consultthat organises consulting projects by client. This is useful as you may be working with repeat clients over time.

Before you start a project, you need to create a client directory for your project to be stored in. Firstly, decide where the client directory should be located, in this case I'll use ~/practice for convenience. You'll also need a name for your client!

clientPath <- "~/practice"
clientName <- "RStars"
createClient(clientName, clientPath)

Consultthat helps you keep track of people in an organisation from project to project using 'addPersonnel()`.

To create a project, you'll need the path your consulting projects are set up in, the client name and a project name.

projName <- "firstProject"
createProject(clientPath, clientName, projName)

This function automatically sets up a regular R package using usethis, but it also adds some other features to help you keep track of everything that goes into a consulting project.

Time Management

Time management can be a pain in the posterior distribution, but when you're charging by the hour, it's essential.

To punch on for a project and start recording the time you spend on it, use punchOn(). You can designate on a category of work you are completing to further break down your time keeping and you can add notes if you like.

library(consultthat)
name <- "Steph"
category <- "Data analysis"
notes <- "fun times to be had!"

punchOn(name, category, notes)

To punch off the project, you can choose another category to end with, if you like, but you can only be punched into one category per project at a time.

name <- "Steph"
category <- "more analysis"
notes <- "this was not awful"

punchOff(name, category, notes)

If multiple people are working on the same project, they will each have their own timesheet generated.

name <- "Gary"
category <- "something over complicated"
notes <- "dubious value"

punchOn(name, category, notes)

You can retrieve a person's timesheet at any time as a data frame with timesheet(name). This is a tidy data frame: you know what that means!

Log issues

There are some excellent issue trackers out there, but if a simple system is all you need, then keeping it all in R can have some advantages. You can log issues using addIssue().

issueID <- "bug fix 4000"
addIssue(issueID, "Steph")

You can add multiple issues, with more detail if you wish.

issueID2 <- "ID0001"
addIssue(issueID2, "Gary", category = "unit tests", notes = "We need them")

You can close an issue at any time:

closeIssue(user = "Steph", ID = "ID0001", notes = "I added them.")

You can retrieve the database of open and closed issues as a dataframe at any time.

issues()

Document your data

A complete data analysis is not an optional activity in a data science consulting project, but a quick "is the data what we think it is" documentation can be useful at the early stages. createBasicDocumentation() can be used to run through all the .csv files in the /data directory and create a short document detailing what's in them using skimr.

This function is currently of limited use, but is a quick check that you've got everything you expected. See ?createBasicDocumentation() for details.

consultthat's People

Contributors

stephstammel avatar rmflight avatar rosseji avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.