Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

parse_stream() has no indication of parsing error and instead issues cryptic warning message #12

@abuchmueller

Description

@abuchmueller
> z <- parse_stream("fromUK.json")
opening fileoldClasskRp.connection input connection.
 Found 2918 records...closing fileoldClasskRp.connection input connection.
 Imported 22015 records. Simplifying...
> z <- jsonlite::stream_in(file("fromUK.json"))
opening fileoldClasskRp.connection input connection.
 Found 2918 records...Error: parse error: premature EOF
                                       {"created_at":"Thu Mar 11 15:20
                     (right here) ------^
closing fileoldClasskRp.connection input connection.

Parsing error at line 2918. However there is no indication of what exactly is happening since parse_stream() only issues a connection warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestminorminor issue / feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions