Closed tylerbhampton closed 7 months ago
Hey I was facing a issue with nrow(response) and then I changed it to 1:length(response) and I am geeting an error message with this, Error in response[i, ] : incorrect number of dimensions
here is my code for(i in 1:length(response)) { planet_activate(i, item_name = item_name) print(paste("Activating", i, "of", nrow(response))) }
And here is the response data that I am getting after planet search...
I got what you meant by changing the dimention of [i,] to [i] and I changed it too in the function planet_activate but now it is throwing me an error with product not found
In the example in the readme, the output of the planet_search() function is named response. The example assumes that response has rows, when I am getting a vector as the output.
The example should be changed to the following:
In addition, within the functions planet_activate() and planet_download(), the index of response should be changed from 2-dimensional to 1-dimensional: