Skip to content

/data folder doesn't seem to work #12

@joseph-allen

Description

@joseph-allen

When I add a data folder as I've done here -> https://github.com/UKDataServiceOpen/r-course-starter/tree/master/data

running

# test read in the dataset from /data/test.txt
df <- read.table('data/test.txt', header = FALSE)

causes

Warning message in file(file, "rt"):
“cannot open file 'data/test.txt': No such file or directory”
Error in file(file, "rt"): cannot open the connection
Traceback:

1. read.table("data/test.txt", header = FALSE)
2. file(file, "rt")

meanwhile

# read from web hosted files
df <- read.table("https://s3.amazonaws.com/assets.datacamp.com/blog_assets/test.txt", 
                 header = FALSE)

works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions