Code Monkey home page Code Monkey logo

Comments (2)

jennybc avatar jennybc commented on June 18, 2024

dear-github/dear-github#166 (comment)

http://stackoverflow.com/questions/32814161/how-to-make-spoiler-text-in-github-wiki-pages/39920717#39920717

from reprex.

jennybc avatar jennybc commented on June 18, 2024

Put this on the clipboard:

(y <- 1:4)
mean(y)

Then call reprex(si = TRUE) ("gh" is the default venue).

Alternatively, provide the R code as an expression: reprex({(y <- 1:4); mean(y)}, si = TRUE).

Paste into an issue and get this:

(y <- 1:4)
#> [1] 1 2 3 4
mean(y)
#> [1] 2.5

devtools::session_info()

devtools::session_info()
#> Session info -------------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.3.1 (2016-06-21)
#>  system   x86_64, darwin13.4.0        
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_CA.UTF-8                 
#>  tz       America/Vancouver           
#>  date     2016-11-11
#> Packages -----------------------------------------------------------------
#>  package    * version     date       source                           
#>  assertthat   0.1         2013-12-06 CRAN (R 3.2.0)                   
#>  backports    1.0.3       2016-06-28 CRAN (R 3.3.0)                   
#>  devtools     1.12.0.9000 2016-09-26 Github (hadley/devtools@26c507b) 
#>  digest       0.6.10      2016-08-02 cran (@0.6.10)                   
#>  evaluate     0.9         2016-04-29 CRAN (R 3.3.0)                   
#>  formatR      1.4         2016-05-09 CRAN (R 3.3.0)                   
#>  htmltools    0.3.5       2016-03-21 CRAN (R 3.2.4)                   
#>  knitr        1.14.2      2016-09-07 Github (yihui/knitr@f02600d)     
#>  magrittr     1.5         2014-11-22 CRAN (R 3.2.0)                   
#>  memoise      1.0.0       2016-01-29 CRAN (R 3.2.3)                   
#>  Rcpp         0.12.7      2016-09-05 cran (@0.12.7)                   
#>  rmarkdown    1.1.9012    2016-11-01 local                            
#>  rprojroot    1.0-7       2016-10-23 Github (krlmlr/rprojroot@af8b5dc)
#>  stringi      1.1.2       2016-10-01 CRAN (R 3.3.0)                   
#>  stringr      1.1.0       2016-08-19 CRAN (R 3.3.0)                   
#>  tibble       1.2         2016-08-26 cran (@1.2)                      
#>  withr        1.0.2       2016-06-20 cran (@1.0.2)

from reprex.

Related Issues (20)

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.