Giter Club home page Giter Club logo

fcuk's Introduction

CRAN_Status_Badge Travis build status Coverage status

fcuk

A package designed to help people with clumsy fingers.

Installation of fcuk

From CRAN

install.packages("fcuk")

From github

if (!require(devtools)){install.packages("devtools")}
devtools::install_github("ThinkR-open/fcuk")

Launch and use

See full documentation realised using {pkgdown} at https://thinkr-open.github.io/fcuk/

After launching this package, every error will be analysed. Each time a typo occurs, a correction suggestion will be made under the default error message.

library(fcuk)

# Examples 
sl()
> Error in sl() : impossible de trouver la fonction "sl"
Did you mean : ls or nls ?

iri
> Erreur : objet 'iri' introuvable
Did you mean : IQR or iris ?

view
> Erreur : objet 'view' introuvable
Did you mean : View or deriv ?

mea
> Erreur : objet 'mea' introuvable
Did you mean : mean or frame ?

You can accept fcuk correction proposal by using this notation : .+1 This allows you to rerun the last line by accepting the first correction proposal. In fact .+n will rerun the nth correction proposal.

library(fcuk)

# Examples 
sl()
> Error in sl() : impossible de trouver la fonction "sl"
Did you mean : ls or nls ?
> .+1
> ls()

Stop fcuk

You can stop fcuk at anytime by calling the remove_error_tracker function. Start the error tracker again with init_error_tracker.

Recurrent use of fcuk

You can launch fcuk with your R session.

.First <- function(){
cat("\n Bonjour !  - ", date(), "\n") 
library(fcuk)
}

It will be more efficient to add this library to your Rprofile. You can use fcuk::add_fcuk_to_rprofile() to do so. Then, any time you launch your R project, fcuk will be launched at the same time.

You can also add fcuk inside your Rprofile.site file. Then you'll have this functionality inside all your Rstudio projects.

fcuk functions

You'll typically never need to use the functions contained in fcuk. You just need to launch this library, and fcuk will do its job in the background.

Feedbacks and questions

Feel free to report any issue you may have with this package.

Code of conduct

Please note that the 'fcuk' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

fcuk's People

Contributors

amrrs avatar colinfay avatar olivroy avatar privefl avatar statnmap avatar vincentguyader avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fcuk's Issues

fcuk doesn't work in reprexes

So I guess it doesn't work with markdown reports either.

library(fcuk)
iri
#> Error in eval(expr, envir, enclos): object 'iri' not found

Created on 2020-01-21 by the reprex package (v0.3.0)

I know knitr does a some call stack dark magic, not sure how hard it'd be to fix, and not crucial in any case but FYI!

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.