openEO
  • About
  • Services
  • News
  • Meetings
  • Events
  • PSC
  • Support
    • Contact
    • CDSE Forum
    • Notebook examples
  • Documentation
    • KEY CONCEPTS
    • Backends
    • Datacube
    • Processes

    • SETUP

    • DATA DISCOVERY
    • Collections
    • Load Collections
    • Load STAC metadata

    • CUBE OPERATIONS
    • Preprocessing
    • Spatial Operations
    • Temporal Operations
    • Spectral Operations
    • Cube Manipulations
    • User Defined Functions
    • Machine Learning
    • User Defined Processes
    • Execute openEO Jobs
    • EXPORT FORMATS

R Client v1.2.0 has been released

Author

Matthias Mohr, Florian Lahn

Published

May 12, 2022

Today, we released a new version 1.2.0 of the openEO R Client, which features a couple of improvements and bug fixes.

You can get it through CRAN: openeo This means you can install or update the R client with the following command:

install.packages("openeo")

If you have trouble installing or working with the package, feel free to leave an issue in the GitHub issue tracker.

We would like to highlight some of the changes:

  • get_sample: We’ve introduced a method to retrieve sample data that can be used to experiment with a small subset of the data locally. A vignette shows how to use it: Sample Data Retrieval

  • Many functions such as list_collections , describe_collection, list_processes now return visual components in environments that support it (Jupyter, RMarkdown, knitr). Here’s an example of the collection list, which includes searching capabilities:

  • The metadata filter in load_collection was made much easier to use. You may need to adapt your code! The new method to filter by cloud cover looks very clean and is less cumbersome to write. It is as simple as this: properties = list("eo:cloud_cover" = function(x) x <= 50) Beforehand, the same filter had to be specified as such:

    properties = list(
          "eo:cloud_cover" = list(
              "process_graph" = list(
                  "cc" = list(
                      "process_id" = "lte"
                      , "arguments" = list(
                          "x" = list("from_parameter" = "value")
                          , "y" = p
                      )
                      , "result" = TRUE
                  )
              )
          )
      )
  • The login procedure was greatly simplified for back-ends that support this new behavior. For example, on openEO Platform you can now login simply by calling the login method as such login() instead of passing a client ID and secret tom connect() or login(). It is still possible, but not required any more. It will then interactively guide you through the login procedure. It is now also supported to login in environments that are remotely hosted (e.g. RStudio Cloud, Jupyter).

  • Getting the JSON representation of a process is now simplified. The new recommended way is toJSON(as(result, "Process")) where result is the last node of your process, which usually is save_result.

  • Directly load data into stars if you set as_stars=TRUE in compute_result