Although I'm able to run and load previous SQL intro, I keep getting and have working directory set to correct path, when calling FROM surveys (or any other file) I keep getting message "Failed to query database: database disk image is malformed." I reloaded file as per previous video. Any suggested solutions?
By any chance did you download the file using download.file in R? That's when I tend to see this in the classroom. If so, try adding the optional argument `mode="wb"` to download.file.
While previewing SQL code, I am constantly getting message "Failed to parse SQL preview comment" what might be the reason? Thanks!
Although I'm able to run and load previous SQL intro, I keep getting and have working directory set to correct path, when calling FROM surveys (or any other file) I keep getting message "Failed to query database: database disk image is malformed." I reloaded file as per previous video. Any suggested solutions?
By any chance did you download the file using download.file in R? That's when I tend to see this in the classroom. If so, try adding the optional argument `mode="wb"` to download.file.
@@weecology Just chiming in (a year later) to say that I had the same error and this fix worked for me! Thank you
@@brendanmcewen7190 Thanks! I love fixes that keep on fixing!