Giter VIP home page Giter VIP logo

baogorek / typingtutor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.65 MB

typingtutor is an R package and companion website for typing practice in R. Play often to increase your R coding fluency, both by getting faster at typing common syntax patterns and increasing your exposure to code from a variety of R repositories.

Home Page: https://baogorek.github.io/typingtutor/

License: Other

R 46.63% HTML 21.89% JavaScript 29.45% CSS 2.03%
r typing-skills

typingtutor's Introduction

typingtutor: A typing tutor and code familiarizer for R

Build Status

Coverage Status

typingtutor is an R package that provides typing exercises based on R packages on github. Its purpose is to increase the user's speed of typing in general and typing R code in particular, with the side bonus of gaining familiarity with the code underlying successful R packages.

The typingtutor websiteThe typingtutor website

Installation

As typingtutor is only available on Github, the easiest way to install it is via devtools:

install.packages("devtools")
devtools::install_github("baogorek/typingtutor")

Usage

After starting R, load the typingtutor library:

library(typingtutor)

To practice typing on the Github repo tidyverse/dplyr, simply enter

type_github()

or, for another repo, enter the Github repository path as an argument:

type_github("stefvanbuuren/mice")

The user is presented with a choice of R files and then groups of R expressions within those files for which to type on. A maximum of 1000 characters will be presented to the user, and functions longer than 1000 characters are truncated.

The typingtutor companion webpage

You can always get to the typingtutor companion website by typing visit_site() in R or by visiting

https://baogorek.github.io/typingtutor/site/signed-in.html

which will redirect to

https://baogorek.github.io/typingtutor/

if the user is not signed in. Currently, a Github account is required for authentication to the typingtutor companion page.

Saving data

After practicing on a typing tutor expression group, the user will be given the option to save to the typingtutor companion page. For the first time in every new R session, the user will have to enter a "authentication metadata string" at a prompt. Once signed into the typingtutor companion webpage, this is accomplished by clicking the green button, pressing CTRL + C and Enter, and pasting the resulting string back into the R prompt.

Saving is optional, and the user may use the typingtutor without ever saving to the typingtutor companion webpage.

typingtutor's People

Contributors

baogorek avatar

Stargazers

 avatar

Watchers

 avatar

typingtutor's Issues

parsed_expression[[j]][[2]] : subscript out of bounds

So far I've only found one file like this, in the default repo.

Which R file would you like to practice on?
Press <Enter> for random selection
Selection:19

User selected data-bands.R

Error in parsed_expression[[j]][[2]] : subscript out of bounds

Bar chart needs to be clearer about what data it's showing

If someone types three separate files, then they'll only see one bar and conclude that something's wrong since the pictures show multiple bars. The bar chart at least needs a better title, and this might be the time to consider rolling up data at different levels.

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.