I don't know how to deal with
Error in .local(.Object, ...) :
`C:\path\to\file.tif' does not exist in the file system,
and is not recognised as a supported dataset name.
You can save rasters, like other R objects, using the
On a different computer, you can load that file using
which will bring back the raster
r in your workspace.
I have tried this across Windows and Linux and it never gives problems