-
Notifications
You must be signed in to change notification settings - Fork 34
created animint2pages() #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
10d6751
created animint2pages()
Faye-yufan b70ae59
update to post files path
Faye-yufan 5bffa3f
GH pages is fine with nested file structure
Faye-yufan 1a980fd
Update NAMESPACE
Faye-yufan 7ec1334
Update DESCRIPTION
Faye-yufan 885a1f0
Merge branch '84-move-gallery-from-blocks-to-gh-pages' of https://git…
Faye-yufan b660d21
use `git2r::cred_token()` for gh authentication
Faye-yufan cbc942c
Error in 'git2r_branch_create': 'commit' must be an S3 class git_commit
Faye-yufan bbdeeb6
Create test-compiler-ghpages.R
Faye-yufan 4232198
Merge branch '84-move-gallery-from-blocks-to-gh-pages' of https://git…
Faye-yufan 2b20045
Check if there are any commits in the repo
Faye-yufan 07967fe
use `gert` package and HTTPS protocal
Faye-yufan d2497df
remove some weird spaces
Faye-yufan 1e71068
Test: Reorder 'Collate' in DESCRIPTION to debug remote installation i…
Faye-yufan b6675eb
add function documentation
Faye-yufan 1d888e3
Add error message for missing GitHub token to include detailed setup …
Faye-yufan e738e8f
Add test for error message
Faye-yufan d71f928
Merge branch 'master' of https://github.com/tdhock/animint2 into 84-m…
Faye-yufan 99f18cc
combine whoami and gitcreds_get()
Faye-yufan 96dc8cf
use gitcreds_get(), cuz gh_whoami() doesn't raise error
Faye-yufan 6ccc1df
move unit test
Faye-yufan 661b6a7
update plot.list
Faye-yufan e07e137
Dynamically identify the active Git branch
Faye-yufan e2cc27d
Add man/animint2pages.Rd and update test case
Faye-yufan d01b457
Update logic of identifying the active branch
Faye-yufan a694218
source option saved to plot.json and displayed below viz
tdhock 7d26efb
bugfix when git_branch returns character
tdhock c1a4fa9
add viz url into README.md
Faye-yufan 15a7067
raise error if input `github_repo` contains "/" forward slash
Faye-yufan 0fb6fc9
stop if required_opts not present
tdhock 54355b9
version++
tdhock 2c04fbf
fix typo
tdhock 9395b1c
provide header engine
tdhock 26e6713
ignore readme_website
tdhock a4f66e3
reformat tryCatch, 1 line string for easier translation
tdhock a123196
replace `git2r::commits` with `gert::git_log`
Faye-yufan f41c1bf
delete animint2gist, and run `roxygen2::roxygenise()`
Faye-yufan 0f469f5
Merge branch '84-move-gallery-from-blocks-to-gh-pages' of https://git…
Faye-yufan 24f37f8
add update_gallery fun
tdhock 7d90528
Merge branch '84-move-gallery-from-blocks-to-gh-pages' of github.com:…
tdhock 4bd9344
get_repo_row->get_pages_info
tdhock 2d305ee
link gallery
tdhock e474342
Merge branch 'master' into 84-move-gallery-from-blocks-to-gh-pages
tdhock 717cab6
fix pages tests
tdhock 438763e
Merge branch '84-move-gallery-from-blocks-to-gh-pages' of github.com:…
tdhock 4701098
line breaks in docs
tdhock 500392e
rm commented code with empty href to fix CRAN check warning about ins…
tdhock 274e199
rm plot arg from docs
tdhock 439be01
rm ghpages test on CRAN
tdhock 631ccb2
do not include vignette on CRAN to save disk space
tdhock 8ef8577
remove aes_q NULL test which was failing on CRAN
tdhock ac41dfe
\itemize->\describe
tdhock 8ff04ca
rm gist test
tdhock 610cab3
do not include VignetteBuilder on CRAN
tdhock 25e6596
fix skip tests
tdhock 02027e2
set user name and email before running tests
tdhock 4962559
test owner=animint, repo=animint/animint2pages_test_repo
Faye-yufan 7c1186c
new setting not working, change token to the previous one
Faye-yufan 38776ad
expect geom_text color
tdhock 56a3583
fix geom text
tdhock 48a4296
bugfix geom_text
tdhock cbdabd1
text color tests
tdhock f922021
specify columns in meta
tdhock fb65ff8
use get_fill in get_fill_off
tdhock a11d1d2
remove typo
tdhock 2698902
reformat line breaks
tdhock c71b8ff
comment
tdhock 1fde9d2
range_is_zero helper
tdhock 9cfe4d4
rm sqrt y example
tdhock 7b6066a
typo
tdhock e8bfa46
clarify geom_text fix
tdhock 893788b
clarify gallery input/output
tdhock 9cc8788
big re-organization
tdhock b4eed26
fix scales
tdhock 6f91b76
bugfix geom_point stroke param
tdhock ff7cdaa
bugfix for geom_point with aes(color) and param fill
tdhock a260b8c
fix text size, angle, stroke
tdhock 84a1d3b
fix global variables and polygon drawing
tdhock ed3c140
rm _stroke
tdhock 493fc83
print diff.vars
tdhock f0b90c9
more prints
tdhock 51f95ef
d is local
tdhock ec0641e
set defaults after geom specific code
tdhock 325ec99
change && to || to fix point fill
tdhock e0e6bbd
tile color/stroke transparent by default
tdhock 5fb272f
text fill comes from colour
tdhock 06492f2
use getHTML
tdhock f479795
move expect_warning to next test
tdhock 151e25e
fix off tests
tdhock 1d9f795
fix default alpha_off
tdhock 4180b88
fix tests
tdhock c5efbaa
fix tests
tdhock 42b0271
version++
tdhock 47c9f1b
get_alpha_off same as alpha when aes is set
tdhock fb8f297
commit repos.txt
tdhock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 +1,4 @@ | ||
| readme_website.md | ||
| .github | ||
| ^.*\.Rproj$ | ||
| ^\.Rproj\.user$ | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -285,6 +285,10 @@ animint2dir <- function(plot.list, out.dir = NULL, | |
| if(!is.null(plot.list$out.dir)){ | ||
| plot.list$out.dir <- NULL | ||
| } | ||
| if(is.character(plot.list[["source"]])){ | ||
| meta$source <- plot.list[["source"]] | ||
| plot.list$source <- NULL | ||
| } | ||
|
|
||
| ## Extract essential info from ggplots, reality checks. | ||
| for(list.name in names(plot.list)){ | ||
|
|
@@ -631,8 +635,8 @@ animint2dir <- function(plot.list, out.dir = NULL, | |
| file.copy(style.file, file.path(out.dir, "styles.css"), overwrite=TRUE) | ||
| } | ||
| file.copy(to.copy, out.dir, overwrite=TRUE, recursive=TRUE) | ||
| export.names <- | ||
| c("geoms", "time", "duration", "selectors", "plots", "title") | ||
| export.names <- c( | ||
| "geoms", "time", "duration", "selectors", "plots", "title", "source") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this saves the source option in the plot.json file. |
||
| export.data <- list() | ||
| for(export.name in export.names){ | ||
| if(export.name %in% ls(meta)){ | ||
|
|
||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this allows the user to specify
sourceas one of the plot options, it should be a URL where we can find the source code for this data viz.