-
Notifications
You must be signed in to change notification settings - Fork 257
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
change envir eval for plumb block #620
Conversation
One thing I noticed is the treatment for the image arguments are evaluated in Could we move the eval to |
Yes, please! (Feel free to do that in this PR.)
Correct. List of
Should we have a separate PR for image serializers? (Will be MUCH easier once #584 is merged) Something like... register_image_serializer = function(name, content_type, dev_on, dev_off = grDevices::dev.off, verbose = TRUE) {
.... # check for existing and warn if verbose
.globals$image_serializers[[name]] <- list(
content_type = content_type,
dev_on = dev_on,
dev_off = dev_off
)
}
Then the situation brings up how should we handle image serializers? Currently, there is only Does the |
I'll move the eval in this PR. Will do a separate PR for plumber syntax once #584 merged. |
Thank you! Does the proposed image make sense to implement? ...Seems to follow pattern of the serializers and parsers |
Yes I think the list is redundant, unsure about the parentheses, I quite like them. But the plumbing block need a tidbit more love, between the shortname for serializers, it is a bit hard to follow. |
Yes, let's keep the parentheses.
Yes, I'd like to remove all examples of |
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.
(Should wait until other PRs are merged) LGTM!
I'm thinking about generalizing block parsing syntax so we have a list of block regex instead of whole blobby mess that it is at the moment. I think we already discussed it. |
That'd be great. Would be much easier to read. (Don't know how the variables will be handled) If you're looking for plumber enhancements, I'd gladly take the removal of Digital Ocean code to an external package. (#593) ... would rather not keep those functions if I can help it. 😬😄 |
I thought I had a PR for digital ocean stuff. Maybe I forgot to push. |
Generally agree with #620 (comment). Maybe the naming should be |
Co-authored-by: Bruno Tremblay <bruno.tremblay@lacapitale.com>
This code is being merged in #623. (Added a news entry) Closing here. |
Fixes #619
PR task list:
[NA] Update NEWS
Add tests
[NA] Update documentation with
devtools::document()
Do to the same for parsers once merged.