Git Product home page Git Product logo

fun's Introduction

fun

R-CMD-check Downloads from the RStudio CRAN mirror

This is a collection of R games and other funny stuff, such as the classic Mine sweeper and sliding puzzles.

fun's People

Contributors

cderv avatar taiyun avatar talgalili avatar yihui avatar yixuan 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fun's Issues

Runtime errors

I tried both sourcing the code and install.packages('fun') and get the same results:

fun::mine_sweeper()
fun::lights_out()
Both get this errror:
Error in setGraphicsEventEnv(which, as.environment(list(...))) :
this graphics device does not support event handling

fun::sliding_puzzle()
Error in while ((len.right%%2) != (len.z%%2) | (all(z == z.right))) { :
argument is of length zero

fun::htmlspecialchars()
Error in gsub(x[i], subx[i], string, fixed = TRUE) :
argument "string" is missing, with no default

fun::tag_cloud()
Error in gsub(x[i], subx[i], string, fixed = TRUE) :
argument "tagData" is missing, with no default

The others are working.

bug in sliding_puzzle()

> library(fun)
> sliding_puzzle()
Error in while ((len.right%%2) != (len.z%%2) | (all(z == z.right))) { : 
  argument is of length zero

shiny app and fun

Is it possible to use the functions in fun package in a shiny app?

X11(type = 'Xlib')

需要一个更好的在*nix下自动提醒用户使用基于Xlib的X11。

if (.Platform$OS.type == 'windows')
    dev.new(width = width, height = height) else X11(width, height, type = 'Xlib')

会让Windows下的R CMD check抱怨没有type参数。而简单的

dev.new(width = width, height = height)

又不能迫使用户使用Xlib。

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.