I want to load a file with several pictures but the file is only recognised as value and not data.
So tried to load only one image (see below) and I get following error:
Error in load("C:/Users/Name/Bachelor/A_muscaria_pics/Amanita_muscariaTRUE133095.jpg") : bad restore file magic number (file may be corrupted) -- no data loaded In addition: Warning messages: 1: In readChar(con, 5L, useBytes = TRUE) : truncating string with embedded nuls 2: file ‘Amanita_muscariaTRUE133095.jpg’ has magic number 'ÿØÿà' Use of save versions prior to 2 is deprecated
and when I try to plot this picture i get following error:
Error in plot.window(...) : need finite 'ylim' values In addition: Warning messages: 1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion 2: In min(x) : no non-missing arguments to min; returning Inf 3: In max(x) : no non-missing arguments to max; returning -Inf
I assume that this problem applies to every single one of my pictures. I am still fairly new to R and I have no clue how to solve this problem myself. I am more than happy to provide further information if it is needed.
One of the images that was supposed to be loaded: