I am using the read.amira.dir function in the Arothron package to produce an array containing coordinate data. I have a folder named LMs which contains a further 8 folders, each representing the landmark data from 7 surface path sets and one set of true landmarks for 148 specimens. I have successfully used the function before using the code:
LMs<-read.amira.dir(“LMs/”, “auto”)
(the working directory is set to the desktop where the folder LMs is located).

However, on a new laptop I am now receiving the following error:
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
In file(con, “r”) : cannot open file ‘LMs/Cranial’: Permission denied

It looks like maybe only one of the folders within LMs (Cranial) is inaccessible, but they are all the same format and all have the same permissions.

I am running as administrator.
The folder is not open and none of the files are open (only R and Firefox are running).
I have restarted the computer and R multiple times.
I have moved the folder around to different locations.
I have tried writing out the full directory path.

Windows 10, R v4.2.2

New contributor

Sophia Anderson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.