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

manageR imports layer with improper names then bugs #1

Open
GoogleCodeExporter opened this issue Oct 4, 2015 · 0 comments
Open

manageR imports layer with improper names then bugs #1

GoogleCodeExporter opened this issue Oct 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

The rules for valid layer names in qgis is not the same as the rule of
standard accepted objects in R.
Consequently, it is possible to import into R objects that don't have
"valid" names.
For instance, a layer with a dash ("-") in the name, or a name starting
with a numeric can be imported but is then very hard to manage with R.

What steps will reproduce the problem?
1. create a layer named "123test" or "my-test" in qgis
2. import it in ManageR
3. Select any tool in "Analysis" menu. You get a long error message, part
of it is:
nexpected symbol in "123test"

What is the expected output?
three options:
 1) try to manage those layers
for instance, rm(123test) will give an error, but rm("123test") works
I doubt it is possible to find workarounds for all function. 

2) give an error message when trying to import such a layer

3) when trying to import such a layer, let the user give a different object
name, telling which rules it must obey.


What version of the product are you using? On what operating system?
Qgis 1.4.0
OS: kubuntu 9.10
Python version:
2.6.4 (r264:75706, Dec  7 2009, 18:59:58) 
R version 2.10.0 (2009-10-26)

Original issue reported on code.google.com by [email protected] on 14 Apr 2010 at 9:26

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

No branches or pull requests

1 participant