Get the latest satellite image acquired by using rgee - Google Earth Engine

Dear all,
I am trying to get the latest available sentinel 2 satellite image from Google Earth Engine through the rgee Package.

Using the following code I can download all the images available in the last 180 days above my study area.

s2 <- ee$ImageCollection("COPERNICUS/S2_SR")

  s2_ocona <- s2$
    filter(ee$Filter$lte("CLOUDY_PIXEL_PERCENTAGE", 30))$

But I would like to download the last available image instead, is there any way I can do this?

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.