这是indexloc提供的服务,不要输入任何密码
Skip to content

Fixed bug that results in "Error in substr(y, 4, 5): object 'y' not found" when using utm projection #85

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

Merged
merged 2 commits into from
Nov 11, 2016

Conversation

kbrevoort
Copy link
Collaborator

When generating maps using a UTM projection, print_tmap returns the following error:

Error in substr(y, 4, 5): object 'y' not found

I traced the error to line 55 in get_proj4_code.R. In the right-hand-side of that assignment, the code refers to variable y which has not yet been defined in the function. I believe that should be variable x. This fixed the error for me.

Hope this helps. Really like the package!

@mtennekes mtennekes merged commit 4feb585 into r-tmap:master Nov 11, 2016
@mtennekes
Copy link
Member

Thanks a lot!

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

Successfully merging this pull request may close these issues.

2 participants