Package: marshal 0.0.1

Henrik Bengtsson

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:Henrik Bengtsson [aut, cre, cph]

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'))

Peer review:

Bug tracker:https://github.com/henrikbengtsson/marshal/issues

On CRAN:

marshallingparallelserialization

3 exports 14 stars 1.58 score 0 dependencies 18 scripts

Last updated 11 months agofrom:412a1f3126 (on main). Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 02 2024
R-4.5-winOKSep 02 2024
R-4.5-linuxOKSep 02 2024
R-4.4-winOKSep 02 2024
R-4.4-macOKSep 02 2024
R-4.3-winOKSep 02 2024
R-4.3-macOKSep 02 2024

Exports:marshalmarshallableunmarshal

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Package marshal - Marshal Objects to be Used in Another R Processmarshal-package
Marshalling of R objectsmarshal unmarshal
Marshalling of 'inline' objectsmarshal.CFunc marshal.inline marshallable.CFunc
Marshalling of R connectionsmarshal.connection marshallable.connection
Marshalling of 'data.table' objectsmarshal.data.table marshallable.data.table
Marshalling of 'DBI:DBIConnection' objects (not supported)marshal.DBIConnection marshallable.DBIConnection
Marshalling of 'h2o' objectsmarshal.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' objectsmarshal.keras.engine.base_layer.Layer marshallable.keras.engine.base_layer.Layer
Marshalling of 'torch' objectsmarshal.luz_module_fitted marshallable.luz_module_fitted
Marshalling of 'magick' objects (not supported)marshal.magick-image marshallable.magick-image
Marshalling of 'parsnip' objectsmarshal.model_fit marshallable.model_fit
Marshalling of 'ncdf4' objectsmarshal.ncdf4 marshallable.ncdf4
Marshalling of 'reticulate' objects (not supported)marshal.python.builtin.object marshallable.python.builtin.object
Marshalling of 'raster' objectsmarshal.RasterLayer marshallable.RasterLayer
Marshalling of 'parallel' objects (not supported)marshal.SOCK0node marshal.SOCKcluster marshal.SOCKnode marshallable.SOCK0node marshallable.SOCKcluster marshallable.SOCKnode
Marshalling of 'terra' objectsmarshal.SpatVector marshal.terra marshallable.SpatVector
Marshalling of 'rstan' objectsmarshal.stanfit marshallable.stanfit
Marshalling of 'sparklyr' objects (not supported)marshal.tbl_spark marshallable.tbl_spark
Marshalling of 'caret:train' objectsmarshal.train marshallable.train
Marshalling of 'udpipe' objects (not supported)marshal.udpipe_model marshallable.udpipe_model
Marshalling of 'xgboost' objectsmarshal.xgb.Booster marshal.xgb.DMatrix marshallable.xgb.Booster marshallable.xgb.DMatrix
Marshalling of 'xml2' objectsmarshal.xml2 marshal.xml_document marshal.xml_nodeset marshallable.xml_document marshallable.xml_nodeset
Marshalling of 'XML' objectsmarshal.XML marshal.XMLAbstractDocument marshal.XMLAbstractNode marshallable.XMLAbstractDocument marshallable.XMLAbstractNode
Check if R object can be marshalledmarshallable