Package: marshal 0.0.1
marshal: Framework to Marshal Objects to be Used in Another R Process
Some types of R objects can be used only in the R session they were created. If used as-is in another R process, such objects often result in an immediate error or in obscure and hard-to-troubleshoot outcomes. Because of this, they cannot be saved to file and re-used at a later time. They can also not be exported to a worker in parallel processing. These objects are sometimes referred to as non-exportable or non-serializable objects. One solution to this problem is to use "marshalling" to encode the R object into an exportable representation that then can be used to re-create a copy of that object in another R process. This package provides a framework for marshalling and unmarshalling R objects such that they can be transferred using functions such as serialize() and unserialize() of base R.
Authors:
marshal_0.0.1.tar.gz
marshal_0.0.1.zip(r-4.5)marshal_0.0.1.zip(r-4.4)marshal_0.0.1.zip(r-4.3)
marshal_0.0.1.tgz(r-4.4-any)marshal_0.0.1.tgz(r-4.3-any)
marshal_0.0.1.tar.gz(r-4.5-noble)marshal_0.0.1.tar.gz(r-4.4-noble)
marshal_0.0.1.tgz(r-4.4-emscripten)marshal_0.0.1.tgz(r-4.3-emscripten)
marshal.pdf |marshal.html✨
marshal/json (API)
NEWS
# Install 'marshal' in R: |
install.packages('marshal', repos = c('https://futureverse.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/henrikbengtsson/marshal/issues
marshallingparallelserialization
Last updated 11 months agofrom:412a1f3126 (on main). Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Sep 02 2024 |
R-4.5-win | OK | Sep 02 2024 |
R-4.5-linux | OK | Sep 02 2024 |
R-4.4-win | OK | Sep 02 2024 |
R-4.4-mac | OK | Sep 02 2024 |
R-4.3-win | OK | Sep 02 2024 |
R-4.3-mac | OK | Sep 02 2024 |
Exports:marshalmarshallableunmarshal
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Package marshal - Marshal Objects to be Used in Another R Process | marshal-package |
Marshalling of R objects | marshal unmarshal |
Marshalling of 'inline' objects | marshal.CFunc marshal.inline marshallable.CFunc |
Marshalling of R connections | marshal.connection marshallable.connection |
Marshalling of 'data.table' objects | marshal.data.table marshallable.data.table |
Marshalling of 'DBI:DBIConnection' objects (not supported) | marshal.DBIConnection marshallable.DBIConnection |
Marshalling of 'h2o' objects | marshal.H2OAutoML marshal.H2OBinomialModel marshal.H2OMultinomialModel marshal.H2ORegressionModel marshallable.H2OAutoML marshallable.H2OBinomialModel marshallable.H2OMultinomialModel marshallable.H2ORegressionModel |
Marshalling of 'rJava' objects (not supported) | marshal.jclassName marshal.jobjRef marshallable.jclassName marshallable.jobjRef |
Marshalling of 'keras' objects | marshal.keras.engine.base_layer.Layer marshallable.keras.engine.base_layer.Layer |
Marshalling of 'torch' objects | marshal.luz_module_fitted marshallable.luz_module_fitted |
Marshalling of 'magick' objects (not supported) | marshal.magick-image marshallable.magick-image |
Marshalling of 'parsnip' objects | marshal.model_fit marshallable.model_fit |
Marshalling of 'ncdf4' objects | marshal.ncdf4 marshallable.ncdf4 |
Marshalling of 'reticulate' objects (not supported) | marshal.python.builtin.object marshallable.python.builtin.object |
Marshalling of 'raster' objects | marshal.RasterLayer marshallable.RasterLayer |
Marshalling of 'parallel' objects (not supported) | marshal.SOCK0node marshal.SOCKcluster marshal.SOCKnode marshallable.SOCK0node marshallable.SOCKcluster marshallable.SOCKnode |
Marshalling of 'terra' objects | marshal.SpatVector marshal.terra marshallable.SpatVector |
Marshalling of 'rstan' objects | marshal.stanfit marshallable.stanfit |
Marshalling of 'sparklyr' objects (not supported) | marshal.tbl_spark marshallable.tbl_spark |
Marshalling of 'caret:train' objects | marshal.train marshallable.train |
Marshalling of 'udpipe' objects (not supported) | marshal.udpipe_model marshallable.udpipe_model |
Marshalling of 'xgboost' objects | marshal.xgb.Booster marshal.xgb.DMatrix marshallable.xgb.Booster marshallable.xgb.DMatrix |
Marshalling of 'xml2' objects | marshal.xml2 marshal.xml_document marshal.xml_nodeset marshallable.xml_document marshallable.xml_nodeset |
Marshalling of 'XML' objects | marshal.XML marshal.XMLAbstractDocument marshal.XMLAbstractNode marshallable.XMLAbstractDocument marshallable.XMLAbstractNode |
Check if R object can be marshalled | marshallable |