Skip to content
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

gsoc'20 call summary #38

Closed
tdhock opened this issue Jun 9, 2020 · 19 comments
Closed

gsoc'20 call summary #38

tdhock opened this issue Jun 9, 2020 · 19 comments

Comments

@tdhock
Copy link
Collaborator

tdhock commented Jun 9, 2020

TODO post summary of calls.

@tdhock
Copy link
Collaborator Author

tdhock commented Jun 9, 2020

  • push/commit more often (at least once per day).
  • send me links to blog post to read.
  • currently upgrading testing packages. some issues. clickElement function not working. tried to execute javascript using executeScript works. change implementation of clickID? report as an issue to RSelenium? Minimal reproducible example. double check if the ID is there and only occurs once -- sometimes selenium does not work when there is more than one element with the same ID.
  • Rmd rendering? calling the knit print test, it renders the page, but instead of the animations, its just showing what the animint package shows on the console. look in the DOM? can't find the animint.js file? based on output looks like print method is being run, but knit_print should be run, maybe look at knitr / rmarkdown to see if there are any new ways to handle knit_print methods? https://cran.r-project.org/web/packages/knitr/vignettes/knit_print.html
> methods(knitr::knit_print)
 [1] knit_print.animint                    knit_print.data.frame*               
 [3] knit_print.default*                   knit_print.grouped_df*               
 [5] knit_print.html*                      knit_print.knit_asis*                
 [7] knit_print.knitr_kable*               knit_print.pillar_squeezed_colonnade*
 [9] knit_print.rowwise_df*                knit_print.shiny.tag*                
[11] knit_print.shiny.tag.list*            knit_print.tbl_sql*                  
see '?methods' for accessing help and source code
> 
  • moving testing to docker? make a blog post or screencast to explain how to do that.
  • oop references: look at animint2/R/geom-*.r files and help(gganimintproto)

@lazycipher
Copy link
Collaborator

  • Why GSoC?
  • Push regularly. The pushed code needs not necessarily to be perfectly working.
  • Consolidate clickHTML and clickID if possible.
  • Report dependency issues to the developers with minimal reproducible examples.
  • knit_print.Rmd rendering due to print method issues.
  • Moving tests to docker and write a post about that and if possible make a video.
  • OPPs reference with help(gganimintproto) see implementation in geom- files.
  • Write every week or every 2 weeks a blog post.

@tdhock
Copy link
Collaborator Author

tdhock commented Jun 18, 2020

hi @lazycipher would you like another call next week?
if not please mention me in any issues you would like me to help with.

@lazycipher
Copy link
Collaborator

hi @tdhock, Can we have a call?
I'm having issues in understanding what causes this issue https://travis-ci.org/github/lazycipher/animint2/jobs/702589867#L9147
and a few more things.

@tdhock
Copy link
Collaborator Author

tdhock commented Jun 27, 2020

to solve that issue just delete that example and then recompile documentation via devtools::document()

> d + stat_sum_df("mean_sdl", mapping = aes(group = cyl))
Don't know how to automatically pick scale for object of type quosure/formula. Defaulting to continuous.
Don't know how to automatically pick scale for object of type quosure/formula. Defaulting to continuous.
Error: Aesthetics must be either length 1 or the same as the data (32): x, y

@tdhock
Copy link
Collaborator Author

tdhock commented Jun 27, 2020

next week is really not that great for me for a call so let's try to use github ok?

@lazycipher
Copy link
Collaborator

lazycipher commented Jun 27, 2020

@tdhock sounds good to me!
I'll recompile and the push. I missed that part.

@lazycipher
Copy link
Collaborator

Hii @tdhock, Can you check what's this test renders and probably explain this test a bit to me, please?
https://github.com/tdhock/animint2/blob/master/tests/testthat/test-renderer4-Inf.R
Screenshot from 2020-06-28 21-15-40

The test is failing because of line 36.

@tdhock
Copy link
Collaborator Author

tdhock commented Jun 29, 2020

this test is supposed to make sure that Inf/-Inf are rendered properly on both the x and y axes (at the edge of the panel).
the line number 36 is the following which computes the y position of the bottom of one of the drawn line segments

seg.bottom <- as.numeric(attr.mat["y1",])

@lazycipher
Copy link
Collaborator

@tdhock, whenever you get free, I need your help to solve the above issue and #40.

@tdhock
Copy link
Collaborator Author

tdhock commented Jul 6, 2020

hi what is the above issue? looks like the viz with Inf/-Inf is rendering fine so you just need to make sure the testing code is extracting the positions correctly right?

@lazycipher
Copy link
Collaborator

If that's the case, then we are looking in the wrong panels for lines.
I'll rectify this asap.

@lazycipher
Copy link
Collaborator

lazycipher commented Jul 9, 2020

@tdhock, I don't know why it's happening! lazycipher@78c8535
The whole file is being taken as modified while when I commit, I check and I see only a single line being modified!
Update: Looks like those files had the CRLF line ends instead of LF.

@lazycipher
Copy link
Collaborator

lazycipher commented Jul 9, 2020

The graph isn't rendering properly!
On R v4:
Screenshot from 2020-07-09 13-42-35

While on R v3.6.3:
Screenshot from 2020-07-09 13-42-29

@lazycipher
Copy link
Collaborator

Fixed this! It was stringsAsFactors = TRUE that was missing!

@tdhock
Copy link
Collaborator Author

tdhock commented Jul 9, 2020

great, that makes sense.

@lazycipher
Copy link
Collaborator

Hi @tdhock, @faizan-khan-iit, I'm having issues in getting the flow of data.
If possible can we have a call as soon as possible please so that I can proceed with #43?

I've also made and posted 2 videos of testing on YouTube which shows how it's done on Linux and Windows. Soon I'll be posting a few videos in which I'll be making animated viz.

@lazycipher
Copy link
Collaborator

Call on 29th July with @faizan-khan-iit,

  • Everything looks good till now: @faizan-khan-iit.
  • I'm working on OOPs implementation. Things look quite good as of now. We should wait for @tdhock for his thoughts over the current implementation.
  • A discussion about possible ways to make it work.
  • Is it feasible to compute all required data from inside the geom_* functions?
  • Once done with current OOPs implementation, we should go ahead with moving the calculation of subset
    from compiler to renderer.

@faizan-khan-iit, Please let me know if I missed anything.

Thank you so much for the detailed discussion.

@tdhock
Copy link
Collaborator Author

tdhock commented Aug 12, 2020

problem understand what is R package? no, problem understanding how R package works. that is normal.
details about problems?
move geom pre-processing to specific geom classes. issue is how? move common processing to base geom, then move geom-specific code to specific classes. sounds great, reasonable.
in base Geom class, you have the save/export method, then from within that method, you call the pre_process method. If l is the layer object then you call l$pre_process(). in base Geom class you need a pre_process method that is a no-op.
How do you get the modified data back? save the return value?

@tdhock tdhock closed this as completed Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants