Closed SvenVw closed 1 year ago
Please read rgee documentation. https://r-spatial.github.io/rgee/articles/rgee02.html
library(rgee)
ee_Initialize()
x <- ee$List$sequence(1,100,1)
y <- x$map(
ee_utils_pyfunc(
function(z) { return(ee$Number(z)$add(1))}
)
)
y$getInfo()
At submit an issue, please attached the following information of your
rgee
session:[ x] You have the Python API installed (from terminal):
[x ] You can find the credentials file on your system:
[ x] You can run a simple EE command from R:
Attach your Python (reticulate) configuration:
Description
When using the
map
function to loop over a EE List, it returns that it can't find the function argument. When trying the same code translated to JavaScript in Code Editor it works.What I Did
It returns this error and traceback:
This translated JavaScript code works in the Code Editor: