
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> suppressPackageStartupMessages(library(stars))
> 
> tif = system.file("tif/L7_ETMs.tif", package = "stars")
> (x = read_stars(tif))
stars object with 3 dimensions and 1 attribute
attribute(s):
  L7_ETMs.tif    
 Min.   :  1.00  
 1st Qu.: 54.00  
 Median : 69.00  
 Mean   : 68.91  
 3rd Qu.: 86.00  
 Max.   :255.00  
dimension(s):
     from  to  offset delta                       refsys point values    
x       1 349  288776  28.5 +proj=utm +zone=25 +south... FALSE   NULL [x]
y       1 352 9120761 -28.5 +proj=utm +zone=25 +south... FALSE   NULL [y]
band    1   6      NA    NA                           NA    NA   NULL    
> 
> # write stars object:
> write_stars(x, tempfile(), driver = "GTiff")
> 
> # write stars_proxy object:
> (x = read_stars(tif, proxy = TRUE))
stars_proxy object with 1 attribute in file:
$L7_ETMs.tif
[1] "/home/edzer/git/stars.Rcheck/stars/tif/L7_ETMs.tif"

dimension(s):
     from  to  offset delta                       refsys point values    
x       1 349  288776  28.5 +proj=utm +zone=25 +south... FALSE   NULL [x]
y       1 352 9120761 -28.5 +proj=utm +zone=25 +south... FALSE   NULL [y]
band    1   6      NA    NA                           NA    NA   NULL    
> write_stars(x, tempfile(), driver = "GTiff")
> 
> proc.time()
   user  system elapsed 
  0.536   0.036   0.564 
