I think this needs to be updated to add a readBin(what = 'raw') in the sequence, or tar(), or some combination of the two. Right now it looks like bundle() is just saving a string that's a path to a tempfile().
save_model_tf() creates a directory at file_loc, and a path to a directory with the same contents needs to be passed to load_model_tf().
I think this needs to be updated to add a
readBin(what = 'raw')
in the sequence, ortar()
, or some combination of the two. Right now it looks likebundle()
is just saving a string that's a path to atempfile()
.save_model_tf()
creates a directory atfile_loc
, and a path to a directory with the same contents needs to be passed toload_model_tf()
.(Thanks @dfalbel!)
Originally posted by @t-kalinowski in https://github.com/rstudio/bundle/issues/27#issuecomment-1218014621