StevenVB12 / patternize

An R package for quantifying color pattern variation
31 stars 8 forks source link

Error using patternize #10

Open hintzam33 opened 6 years ago

hintzam33 commented 6 years ago

I'm trying to run through the spider example provided for patternize and continue to hit the same roadblock (on both Mac and PC). I have looked through the other issues listed here and on other websites. A dependency issue is what I suspected was going on, but the solutions provided for that have not solved my problem.

Here is my code with error: imageListGala <- makeList(IDListGala, 'image', prepath, extension) [1] "sample 1 IMG_2602_gal added to list" Error in .local(.Object, ...) :

Error in .rasterObjectFromFile(x, objecttype = "RasterBrick", ...) : Cannot create a RasterLayer object from this file. (file does not exist)

Any insight as to what is causing this error? Thank you for your advice.

StevenVB12 commented 6 years ago

Hi hintzam33,

this sounds like the path to the image files isn't found. Have you set the working directory correctly? The program will use the 'prepath' starting from the working directory you are in.

Hope this helps.

Steven