Permalink
Browse files

Better use of "data" inside a function in a package.

  • Loading branch information...
1 parent 8f58a40 commit 94198ace60786baf1c1f47dd0b54c943962dfd43 @talgalili committed Jan 30, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/RStudio_CRAN_data.r
View
@@ -382,7 +382,7 @@ pkgDNLs_worldmapcolor <- function(pkg_name, dataset, remove_dups=TRUE, ...){
names(counts) <- c("country", "count")
- data("WorldBordersData") #loading the world map definition file
+ data("WorldBordersData", envir = environment()) #loading the world map definition file
# downloaded as a shapefile of the world map from Natural Earth:
# http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
# and unzip it in the 'shp.file.repos' repository

0 comments on commit 94198ac

Please sign in to comment.