Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-finite location and/or size for viewport #9

Open
robsalasco opened this issue Aug 21, 2020 · 4 comments
Open

Non-finite location and/or size for viewport #9

robsalasco opened this issue Aug 21, 2020 · 4 comments

Comments

@robsalasco
Copy link

Hi! I'm running snapbox under debian buster using a rmarkdown file and render() command. I don't have issues on macos but adding the layer to ggspatial cause the infamous "non-finite location and/or size for viewport" error.

Hope you can find a solution, thank you guys!

layer_mapbox(st_bbox(isocrona), 
             mapbox_api_access_token = "",
             map_style = mapbox_light(), 
             retina = F, scale_ratio = 0.5) + 
Error in grid.Call.graphics(C_setviewport, vp, TRUE) : 
  non-finite location and/or size for viewport
@robsalasco
Copy link
Author

robsalasco commented Aug 21, 2020

update: I tried to build under R 4.0.2 using the rocker geospatial image and it gets stuck trying to render the map :/

@MilesMcBain
Copy link
Collaborator

I haven't been able to reproduce this on Ubuntu 18.04 😬

@MilesMcBain
Copy link
Collaborator

@robsalasco since you say "infamous", do you have a link to some info about this error in mind?

@robsalasco
Copy link
Author

robsalasco commented Aug 28, 2020

@MilesMcBain yeah it's very common and it have multiple reasons . Are you using a docker image? I'm trying to use the library on rocker geospatial I tried 3.6.1 and 4.0.2. In the first the non-finite error appeared and in the 4.0.2 version snapbox doesn't work because it gets stuck doing something. I use the library inside a rmarkdown file ;).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants