Comments (4)
This package looks very promising!
I was thinking about how to make report more integrated with the RMarkdown. The current missing things for me in report are that there are not many options to change styling; and therefore, there are less RMarkdown inlining possibilities.
An API suggestion and an expected result:
library(tidyverse)
library(report)
iris %>%
with(., cor.test(Sepal.Length, Petal.Length)) %>%
report() %>%
report_style(
rename_values(
Parameter1 = `Sepal Length`,
Parameter2 = `Sepal Width`
),
text_bold(
value = "Parameter1"
),
text_bold(
value = "Parameter2"
)
text_italic(
value = "r"
),
text_italic(
value = "p"
)
) %>%
to_fulltext()
#> The Pearson's product-moment correlation between **Sepal Length** and
#> **Petal Length** is positive, significant and large (*r = 0.87*, *p < .001*).
This kind of pipe chaining is implemented in a very well manner in rstudio/gt.
Also, referring to your initial message, I'd suggest doing modifications in the object returned by report()
instead of relying upon the pure RegEx which would be a lot of work and very likely to fail.
from report.
@strboul Thanks for that suggestion! >e will start looking into it once an initial version of report in on CRAN. We might ping you then to seek your opinion
from report.
The cli
package could coloring console output quite straightforward, but I don't know how well it translates to Md/TeX/HTML output (if at all)?
from report.
Dr. Strengejacke strongly recommends the easystats
remain lightweight, so can't pick up a new dependency like cli
π
insight
has a utility function does exactly this:
https://easystats.github.io/insight/reference/print_color.html
from report.
Related Issues (20)
- Unclear reporting HOT 1
- The model's explanatory power is "substantial" HOT 1
- What's the best way to provide appropriate attribution/citation? HOT 2
- Support models of class `gamm` HOT 2
- emmeans and beta regression support
- `report_participants()` should set age as numeric, accept more choices for gender
- report fails when model formulat built with stats::reformulate
- oneway.test: `Error in paste0(out$interpretation, " (", out$statistics, ")"): object 'out' not found`
- Add support for `kruskal.test()`
- Error: bad 'data': object 'data_std' not found HOT 3
- What is the expected behaviour for report(estimate_contrasts(model))?
- To-do: Clean-up names in outputs (`airquality$Month` instead of `as.factor(airquality$Month)`) HOT 1
- Why do the standardized beta values and CIs of a glm poisson regression model not differ from the unstandardized ones? HOT 8
- New CRAN release? HOT 1
- When using stats::t.test, the report() and report_table() function output displays "95 % CI" even if, say, conf.level = 0.975
- CRAN submission revedep check failed (*** Strong rev. depends ***: easystats SqueakR) HOT 7
- report does not work with BayesFactor models
- report_sample(): add indices names in caption instead of table HOT 1
- support for quantile regression
- Report Summary for Time Series Model Stats
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 report.