R plotKML google earth object name incorrect -


i trying create kml files in loop r. variable names dynamic have use assign() , get() create , use spatial dataframe. example

assign(paste("gasmetsite", sites[n], sep = ""), stidf(latlon, ...) plotkml(get(paste("gasmetsite", sites[n], sep = "")),       file=paste(trial_name, " gasmet site ", sites[n], ".kml", sep=""),       labelscale=0,       color=gasmet2[[n]]$hit,       open.kml = false) 

the resulting kml file when opened in google earth uses variable name including get/paste command seen below: enter image description here

what can correct object name "gasmetsite1" - in output of command rather entire command? actual .kml file names correct, listing on left side in google earth has incorrect name.


Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -