Comments (2)
dear-github/dear-github#166 (comment)
from reprex.
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()
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)
- Warning that R appears to crash when it does not HOT 1
- Thoughts about talking about reprexes HOT 1
- Error in xfun::normalize_path() : unused argument (resolve_symlink = FALSE) HOT 2
- reprex:::reprex_addin() on posit cloud does not show the preview HOT 1
- Take advantage of some backtrace improvements HOT 3
- Running in non-interactive mode using the `input` argument seems to use an existing `<input>_reprex.R` HOT 2
- Reprex v2.0.2 does not print all columns of bench::mark() HOT 1
- Upkeep for reprex
- Reprex skipping some statements (these should cause an error) HOT 2
- Add wd panel to Rstudio Addins Menu HOT 1
- Error in `reprex_render_impl()` HOT 3
- Unable to generate a reprex due to possibly clipboard or file connection issue HOT 2
- Question: Does `{reprex}` support MS Teams? HOT 4
- Error in reprex_render_impl() HOT 1
- Don't show the full backtrace HOT 1
- Output when following documentation instructions does not match expected result HOT 2
- Release reprex 2.1.0
- Enhance `would_clobber()` with more help getting rid of the offending file
- Error in read_xml.raw(res) : Start tag expected, '<' not found [4] HOT 4
- Warning exists when `reprex(... style = FALSE)` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reprex.