Skip to content

Error: File does not exist. Create it, or fix the path. #34

@qaltimee

Description

@qaltimee

@AntJam-Howell
Hi, I have my dorling cartogram created and saved.

library( geojsonio )

seattle.sp <- spTransform( seattle.sp_dorling, CRS("+proj=longlat +datum=WGS84") )
geojson_write( seattle.sp_dorling, file="seattle.sp_dorling.geojson", geometry="polygon" )

The file path is created as shown below:

<geojson-file>
  Path:       seattle.sp_dorling.geojson
  From class: SpatialPolygonsDataFrame

I try to pull the path in the dashboard like this:

# DATA STEPS 

library( geojsonio )
library( sp )
library( tmap ) 


seattle.sp <- geojson_read("data/seattle.sp_dorling.geojson", what="sp" )

plot( seattle.sp )

I keep getting the error : Error: File does not exist. Create it, or fix the path.

I'm not sure what I need to do to pull in the path. I changed the work directory to file path and that didn't seem to do it either. Is there something I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions