children <- read.table(file="children.csv", sep=",")
CA <- ca(children) #function ca() from package ca
summary(CA)
I get this afterwards:
The downloaded binary packages are in
/var/folders/z0/t0wc0js90wb_4_fqmg5qh9y00000gn/T//RtmpWSxNzS/downloaded_packages
library(ca) # to load it
children <- read.table(file="children.csv", sep=",")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'children.csv': No such file or directory
This doesn't seem like a package installation problem, since you don't mention a problem with either install.packages() or library().
Also, as far as I can tell, there is no dataset called children in the package ca, so this problem most likely has nothing to do with the ca package at all.
Instead, the error indicates that the file children.csv does not exist.
If the file does exist on your machine, try to specify the full path to this file when you do the read.table(), e.g:
read.table("path/to/children.csv")
Finally, note that you can use read.csv() to more easily read CSV files.