Skip to content

gcs_get_object(object, parseObject = TRUE) returns raw object from .csv and will not parse into a data frame #184

@sarahhirsch

Description

@sarahhirsch

I have just finished authenticating and connecting to my project's bucket, where I have several somewhat large .csv files, from a virtual machine (Debian) on the same project. I am trying to load these files into my R project environment as data frames, but I only seem to be able to get a raw object when using gcs_get_object(object, parseObject = TRUE).

Both gcs_parse_download(object, encoding = "UTF-8") directly on the bucket object and content(object) on the output of gcs_get_object(object, parseObject = TRUE), throw
Error in content(object) : is.response(x) is not TRUE.
(which is expected, at least for the latter case).

I have also tried gcs_parse_download(object, encoding = "ANSI") with the same results.

Do you know what might be happening here? Have I misunderstood one of these functions? How can I get my data into a data frame?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions