GithubHelp home page GithubHelp logo

mthomas-ketchbrook / boston_user_talk Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 70 KB

Repository for materials associated with the presentation "Beyond #rstats: Workflow Management & Data Engineering in R" at the October 20th, 2020, Boston useR Group meeting

R 100.00%

boston_user_talk's Introduction


Beyond R-stats: Workflow Management & Data Engineering in R

This repository contains materials associated with the lightning talk given at the Boston useR Group meetup on October 20, 2020.

The file intro.R provides examples of the R functions discussed in the lightning talk.

This code in this talk utilizes two unique packages, the fs package and the DBI package:

  1. The fs package is used to interface with the file system (create directories, move files, etc.). Though R has base functions that do a lot of this (dir.create(), file.copy(), etc.), a list of reasons why fs functions are a safer choice can be found here.

  2. The DBI package is used to interface with database management systems, such as Postgres, SQL Server, SQLite, etc. In this talk, we will showcase how to send SQL statements to a SQLite database via the functions in this package.

How it All Works Together...

The talk begins by demonstrating moving around the file system with both base R and the fs package. The intro.R script demonstrates how to write a dataframe to a delimited file, remove files from a directory, copying a file from one directory to another, and renaming files. At the end of the script, a SQLite database (and database table) are created.

The second part of the talk showcases how to use the DBI package to write data to a SQLite database. A Shiny app was created to demonstrate how a user's manual input, as well as a user's characteristics (using R environmental variables garnered from the Sys.getenv() base R function) can be captured within a Shiny app and written to a SQLite database with -- literally -- the "click of a button!".

boston_user_talk's People

Contributors

mthomas-ketchbrook avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.