title: How to extract small dataset images from a large image using box in R
body: <p>I would like to extract from an image a dataset of smaller images as illustrated as follow. I would like to create a box of 64x64 pixels, translate it in x and y and save each image in JPEG.
  <a href="https://i.stack.imgur.com/CrnHC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CrnHC.jpg" alt="enter image description here"></a></p>
  
  <p>Could you suggest a function in R to do it ? I do not find the way the create a box.</p>