data1 <- read.csv("C:\Fitbit data files\Fitabase Data 4.12.16-5.12.16\dailyActivity_merged.csv", header=TRUE, stringsAsFactors=FALSE)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'C:\Fitbit data files\Fitabase Data 4.12.16-5.12.16\dailyActivity_merged.csv': No such file or directory
setwd("C:/Fitbit data files/Fitabase Data 4.12.16-5.12.16") # Change the working directory
Error in setwd("C:/Fitbit data files/Fitabase Data 4.12.16-5.12.16") :
cannot change working directory
1 Like
Try
data1 <- read.csv("C:/Fitbit data files/Fitabase Data 4.12.16-5.12.16/dailyActivity_merged.csv", header=TRUE, stringsAsFactors=FALSE)
or
data1 <- read.csv("C:\Fitbit data files\Fitabase Data 4.12.16-5.12.16\dailyActivity_merged.csv", header=TRUE, stringsAsFactors=FALSE)
**R** uses the **/** Linux slash rather than the Windows **\** so if you are using the Windows **\** you need to escape it like this **\\**
Welcome to the Forum.
1 Like
You need to upload the file from your computer to Posit Cloud. RStudio is running in the cloud and your data needs to be in the same cloud.
Click on the Files tab in the lower right pane
Click on the Upload tab
Click on Choose File
Navigate to the file on your computer and select it
Click on Open
1 Like
What's the give-away that shows " RStudio is running in the cloud"?
According to Posit, Posit Cloud is a Cloud-based solution that lets you access Posit's powerful set of data science tools right in your browser – no installation or complex configuration required. Looking to do, share, teach, or learn data science? You've come to the right place. Get Started with Posit Cloud.
The versions of R and RStudio are different on my computer and Posit Cloud, as is the operating system.
Perhaps I am misinterpreting what it means to be "running in the cloud."
Thanks, I completely missed the tag.
Sorry for misinterpreting your question. I probably should not respond to anything after spending a few hours on our tax return.