-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Addition of User-Friendly functions. #6
Conversation
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.
A good contribution! Although I have left some comment, may I edit this PR and make some code formatting fix to pass the checking problem before reviewing the main part of implements? And I will write some message and description in each commit, so it's quite convenient for your PR next time.
I must apologize that I should write some standard about how to make a contribution in wiki, but r3dmol
just a small project and in it's very early stage.
Co-authored-by: InfinityLoop <swsoyee@gmail.com>
…hrough m_shape_spec()
I've gone through and made changes and fixed things that were immediately needing to be addressed. I also made a change to the What should I do about the |
@BradyAJohnston It's seems very good after you change those function to
When, it's fine so just keep going in this PR. There are also some suggestions if you know how to fix/implements:
I'm sorry for those requests, if you think it's too heavy or do not know how to deal with those questions please let me know. |
Thank you for your contribution! I will check the code this weekend! |
I've changed up the So far I've been continuing the |
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.
Thanks for your contribution again! I have check this changes and I think it's highly acceptable.
Some minor changes requested and I only write the comments in R/view_options.R
, other functions could address those comments and make some minor fix.
So far I've been continuing the m_* nomenclature, but unsure if that should apply to everything in the package? Something to think about.
When call the functions, many users may not going to use r3dmol::function()
but only type function()
. If we named the function in a commen words that may confilict to other package, it may cause some unexpectful errors, and the user may not be aware of that.
Further more, if the user library(r3dmol)
at first, just type m_
and the all functions which are available in {r3dmol}
will be listed out for a quick searching. It could be tedious in typing lots of m_
, but the user will definitely know the functions come from {r3dmol}
.
} | ||
|
||
m_viewer_spec | ||
} |
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.
A test for list converting is not difficult so adding a test would be prefer.
https://testthat.r-lib.org/index.html
I've gone through and cleaned up everything you mentioned, except for the creation of testing. I've added that as an issue #7 . |
Thank you! I will check them tonight👍 |
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.
I'm sorry for the late response, just a minor comments 👍
Feel free to ask any question.
Re-write all `style = ` in examples.
I think I've addressed everything in your latest set of comments. Thanks so much for all of the feedback! |
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.
Everything looks very good! Finally, it would be better to use
styler:::style_active_pkg()
to style all the code at once. 😉
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.
Good! I merge it and thank you for your contribution!
@BradyAJohnston Could you please have to check the code again because the the style seems not be properly set. |
Creation of user friendly functions for addition of styles, and selection algebra. Provides options for user to choose from, rather than having to lookup the documentation.
Also creation of functions load
bio3d
structures and fetch from the pdb usingbio3d
as the intermediate.Slight tweak to the
r3dmol()
. Addition ofviewer_spec
argument, which is passed through into the configs for in addition to any ... arguments supplied. Allows for prompting of common useful options such ascartoonQaulity
andnomouse
.