forked from rstudio/gt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into batpigandme-web-image-doc
* master: (59 commits) add fmt_markdown to _pkgdown.yml (rstudio#371) Use `tidy_grepl()` instead of `expect_match()` Use `tidy_grepl()` & `expect_true()` Add `dt_*()` methods for all major, internal data structures (rstudio#355) Update CLA text (rstudio#373) remove reliance on Github version of sass, which is now updated on CRAN (rstudio#366) Fix for invisible top borders in rendered HTML tables (rstudio#359) CSS modifications (rstudio#346) Incorporate alpha option to `cell_fill()` (rstudio#340) Enable option to set row group padding in `tab_options()` (rstudio#342) Modify `filter()` statement (rstudio#341) Allow use of integers in `pct()`/`px()` (rstudio#336) Fix for resolving row group cells (rstudio#335) Easier access to footnote mark options (rstudio#333) Export `as.tags.gt_tbl()` (rstudio#331) Several `rlang`-based fixes (rstudio#334) Add function to specify column widths: `cols_widths()` (rstudio#293) Add `rstudio/sass` to Remotes list (rstudio#326) Fix for `cell_borders()` (rstudio#323) Allow an empty table with zero rows to create an empty gt table (rstudio#283) ...
- Loading branch information
Showing
435 changed files
with
19,286 additions
and
75,625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ tests/examples | |
tests/manual_tests | ||
^vignettes/videos$ | ||
^vignettes/images/apng$ | ||
^TODOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ Once there is consensus that a PR based on the issue would be helpful, adhering | |
* The internal documentation uses [roxygen2](https://cran.r-project.org/web/packages/roxygen2/vignettes/roxygen2.html); if your contribution requires new or revised documentation ensure that the roxygen comments are added/modified (do not modify any `.Rd` files in the `man` folder). | ||
* We use [testthat](https://cran.r-project.org/web/packages/testthat/) for code coverage; those contributions with test cases included are helpful easier to accept. | ||
* Add a bullet to the top of `NEWS.md` below the current development version header describing any user-facing changes made; include your GitHub username, and links to relevant issue(s)/PR(s). | ||
* Fill out and sign the [individual](https://rstudioblog.files.wordpress.com/2017/05/rstudio_individual_contributor_agreement.pdf) or [corporate](https://rstudioblog.files.wordpress.com/2017/05/rstudio_corporate_contributor_agreement.pdf) contributor agreement as appropriate; then send the signed copy to [email protected]. | ||
* Ensure that you have signed the contributor license agreement. It will appear as a "Check" on your PR and a comment from "CLAassistant" will also appear explaining whether you have yet to sign. After you sign, you can click the "Recheck" link in that comment and the check will flip to reflect that you've signed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
inst/doc | ||
# History files | ||
.Rhistory | ||
.Rapp.history | ||
|
||
# Docs folder from `pkgdown::build_site()` | ||
docs/ | ||
inst/doc | ||
|
||
# Session Data files | ||
.RData | ||
|
||
# Example code in package build process | ||
*-Ex.R | ||
|
||
# Output files from R CMD build | ||
/*.tar.gz | ||
|
||
# Output files from R CMD check | ||
/*.Rcheck/ | ||
|
||
# RStudio files | ||
.Rproj.user/ | ||
|
||
# produced vignettes | ||
vignettes/*.html | ||
vignettes/*.pdf | ||
|
||
# knitr and R markdown default cache directories | ||
/*_cache/ | ||
/cache/ | ||
|
||
# Temporary files created by R markdown | ||
*.utf8.md | ||
*.knit.md | ||
.Rproj.user | ||
|
||
# Other files | ||
.DS_Store | ||
test.rtf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,61 @@ | ||
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r | ||
# R for travis: documentation at https://docs.travis-ci.com/user/languages/r | ||
|
||
language: R | ||
sudo: false | ||
cache: packages | ||
cache: | ||
packages: true | ||
warnings_are_errors: false | ||
|
||
# This library is required for installing the `rgl` pkg dependency | ||
addons: | ||
apt: | ||
packages: | ||
- libglu1-mesa-dev | ||
|
||
r: | ||
- oldrel | ||
- release | ||
- devel | ||
|
||
notifications: | ||
email: | ||
on_success: change | ||
on_failure: change | ||
|
||
jobs: | ||
include: | ||
- r: oldrel | ||
- r: release | ||
- r: devel | ||
- os: osx | ||
r: release | ||
|
||
r_binary_packages: | ||
- covr | ||
- stage: deploy | ||
name: covr | ||
r: release | ||
cache: | ||
packages: false | ||
r_binary_packages: | ||
- covr | ||
script: | ||
- Rscript -e "covr::codecov()" | ||
|
||
after_success: | ||
- Rscript -e 'covr::codecov()' | ||
- stage: deploy | ||
name: pkgdown | ||
r: release | ||
cache: | ||
packages: false | ||
if: | | ||
branch IN (master, travis) AND \ | ||
type = push AND \ | ||
repo = rstudio/gt | ||
r_binary_packages: | ||
- pkgdown | ||
- remotes | ||
script: | ||
- Rscript -e "remotes::install_local()" | ||
- Rscript -e "pkgdown::build_site()" | ||
- Rscript -e "remove.packages('gt')" | ||
deploy: | ||
provider: pages | ||
local-dir: docs | ||
skip-cleanup: true | ||
keep-history: false | ||
on: | ||
all_branches: true | ||
github-token: | ||
secure: "GrujWLlpdgy59mI5ZiYnlT8p1LDpqoms/ROeBuFOhJ6tZa6lNYzG4tR2iGkJS5a9hykMbkDootmx95ktC/ovjvFrWXLb8Ql+XiWri1cb17G3SzcEz7m35RA6fKNsu9BVM1qhydBnSS6UtFGWkK/+4dqkT3/3b7XnO2WmF8MtFno9iPnBRybgIYjt5qrBNUZQPcvkjL6FV1x2X2O5lwrH4ND7ueM6wgs5BtxCQxhaBcu9gmDbjlnPsfCbqQvxVNuifguF9AzDPE97nylDyr9jeycehWkvHioFKjYhK/yWfANuXGOgYb0I+vCyxDfxIrOfc+IhUEGaSxqZ3H3fy3Mdc8Bd2+IhC6KbdpSJiB57N1OPIHj6I8a9YlELZN2EczDXUxfvppTlDYBAWUpfI2uPoBMskBTgPXP838u+jNrAcMERkNAIgb4VOPVnf+MbGei2gfSWXmFvH+z0EjwpPxhv0nP1+5TT2RsErwpEyrA8qO14uICx+/gKPZulMKeZApjWYtOyJRjeRYPFUwrLx8S52CeR1el5QyiuPke9oTxmg9gMuoVWGReoDvtOIaz6LbgUPy9/o+gHNPb70DLYii9h2thzJtMTr30jnpGsosIaBghpregaOvxEIyo5xJGRBn9z0R1n6VnRWjyIC/VTh0ljn1pvC26LVrQj7DKa8SMP6Jw=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#' @export | ||
as.data.frame.gt_tbl <- function(x, ...) { | ||
|
||
data <- x | ||
|
||
data_built <- | ||
data %>% | ||
build_data(context = "html") | ||
|
||
ret <- | ||
data_built %>% | ||
dt_body_get() %>% | ||
as.data.frame(stringsAsFactors = FALSE) | ||
|
||
has_rowname <- | ||
data_built %>% | ||
dt_stub_components() %>% | ||
dt_stub_components_has_rowname() | ||
|
||
if (has_rowname) { | ||
rowname_vals <- | ||
data_built %>% | ||
dt_stub_df_get() %>% | ||
dplyr::pull(rowname) | ||
|
||
rownames(ret) <- rowname_vals | ||
} | ||
|
||
ret | ||
} |
Oops, something went wrong.