Helping with the code, it doesn't work without any error

I'm new in R-studio. And I need the code, which can extract values which are on the raster 'layer_ostat' (in this layer are counted indeces) from the layer named 'bufor_1'. This buffor is created aroung points in ArcMap.
I think this code should works but it doesn't. When I click run it shows sth like on the right side on the attached photo.
At first I thought that it needs more time because 'layer_ostat' is big layer but not. I waited really long few times and nothing happened. Even any error isn't shown.
Please help because I really need this code. :frowning:

It's very hard to read code from a screenshot, and even harder to reproduce what's happening with one!

Could you turn this into a self-contained reprex (short for reproducible example)? It will help us help you if we can be sure we're all working with/looking at the same stuff.


If you've never heard of a reprex before, you might want to start by reading the help page. The reprex dos and don'ts are also useful.

What to do if you run into clipboard problems

If you run into problems with access to your clipboard, you can specify an outfile for the reprex, and then copy and paste the contents into the forum.

reprex::reprex(input = "fruits_stringdist.R", outfile = "")

For pointers specific to the community site, check out the reprex FAQ, linked to below.

1 Like