file.info why do I get NA for all columns

Hi all,
I am having trouble with file.info. Here is the link to my project Posit Cloud

I just want to know the size of the dataset.
I call this
file.info("BRCI") and get
size isdir mode mtime ctime atime uid gid uname grname
BRCI NA NA NA NA

can someone explain what the problem is...I've also tried

file.info("BRCI")$size
and get
[1] NA

Thanks!

I can reproduce your issue by running

file.info("a file that doesnt exist") 

so I think the next step would be checking file.exist() which will likely be false,
and then understanding why you think the file exists but why the system doesnt.
perhaps its a question of file paths, re. your working directory getwd() being different from the BRCI file location. or perhaps you omitted a file extension, does BRCI not have an associated file type ?

I didnt follow the link to your cloud project, so I havent considered its contents.

1 Like

Thanks. I was omitting the file extension!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.