-
Notifications
You must be signed in to change notification settings - Fork 12
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
ENH: read_civis.civis_script #159
Comments
I like this a lot.
I don't think so. It looks explicit to me. Some misc thoughts:
|
Yeah, these are all great questions.
I'm using The only confusion is that the job type is the same for
Yep!
Yes! I'm planning on thinking about writing to container outputs next. |
Read civis interface to scripts
I'm proposing that
read_civis.civis_script
have two additional arguments:regex
andusing
. This design mimics the current behavior ofread_civis
which is to return values whenever it is unambiguous to do so.Default
The default is
using = NULL
, which returns a named list of file ids. This doesn't return values. It does return a helpful result if you don't know what the object types are that are posted in the script.With a
regex
,read_civis.civis_script
returns a list of ids maching the regex.using = reader
With
using = reader
,read_civis
returns the values directly.Here
reader
is used to read all outputs:A more relevant case is with
regex
, which you can use to filter outputs that match a file extension, and then parse them with the rightusing
:JsonValues
A really helpful feature of the API is that json values are simply returned as-is in
out$value
. So any non-nullusing
can simply returnJsonValues
directly without attempting to parse/download the output.Thoughts on this @keithing ? Is it too magical?
The text was updated successfully, but these errors were encountered: