Closed maelle closed 2 years ago
thanks i'll have a look
@maelle Looks like its just map_gist
tests that are not working for you. can you run the map_gist tests line by line, and do traceback or so to see where the error is coming from.
i tried unsetting github_pat and that doesn't reproduce this, neither does setting github_pat to an invalid string
I see
library("geojsonio")
#> Registered S3 method overwritten by 'geojsonsf':
#> method from
#> print.geojson geojson
#>
#> Attachement du package : 'geojsonio'
#> L'objet suivant est masqué depuis 'package:base':
#>
#> pretty
tfile <- tempfile(fileext = ".geojson")
geojson_write(us_cities[1:20, ], lat='lat', lon='long', file = tfile)
#> Success! File is at /tmp/Rtmp4mWKbY/file441346cfe15c.geojson
#> <geojson-file>
#> Path: /tmp/Rtmp4mWKbY/file441346cfe15c.geojson
#> From class: data.frame
a <- map_gist(file=as.location(tfile), browse = FALSE)
#> Error: Not Found
Created on 2022-01-03 by the reprex package (v2.0.1)
This was a PAT scope problem :woman_facepalming:
nice job figuring it out!
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
:wave: @sckott
Some of those are false positives due to my laptop showing error messages in French. Maybe the others are due to auth?