-
Notifications
You must be signed in to change notification settings - Fork 74
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
User-defined file formats #736
Comments
On second thought, better to use the |
I just tried to implement this, and creating a new "store_custom" class modeled after local keras is not a good fit for the design. Another idea is to dynamically create the S3 methods and assign them to an environment that the package can access at runtime. But what environment? |
Yeah, any storage methods should really be part of the package if they exist. Not a good fit. |
So it wasn't working because resources can't be saved to metadata (they are a nested list with non-exportable objects). So it really does have to be part of the format string. |
Conceptually makes sense because marshal/unmarshal is part of the format definition. |
Prework
Proposal
I am not sure this is possible, but if it is, it could catch edge cases like #599. At the interface level, it would look something like this for local Keras:
tar_format()
could deparse the arguments and turn it into a character vector with a class name and encoded strings:Plan:
targets
interprets that string as instructions and safely store it as metadata.cloud
determines any additional subclasses of the store needed for cloud storage.read
,write
,marshal
, andunmarshal
get stored instore$resources
and get invoked in the required methods of a new special store subclass for this purpose.The text was updated successfully, but these errors were encountered: