Skip to content

Commit

Permalink
Improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaspons committed Nov 1, 2024
1 parent 91803ee commit e4712d4
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions R/get-osmdata-df.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
#'
#' # Complex query as a string (not possible with regular osmdata functions)
#' q <- '[out:csv(::type, ::id, "name:ca", "wikidata")][timeout:50];
#' area["name"="Països Catalans"][boundary=political]->.boundaryarea;
#' area[name="Països Catalans"][boundary=political]->.boundaryarea;
#'
#' rel(area.boundaryarea)[admin_level=8][boundary=administrative];
#' map_to_area -> .all_level_8_areas;
#'
#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;);
#' ( nwr(area.boundaryarea)[amenity=townhall]; >; );
#' is_in;
#' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall;
#'
Expand Down
6 changes: 3 additions & 3 deletions R/get-osmdata-sc.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
#'
#' # Complex query as a string (not possible with regular osmdata functions)
#' q <- '[out:xml][timeout:50];
#' area["name"="Països Catalans"][boundary=political]->.boundaryarea;
#' area[name="Països Catalans"][boundary=political]->.boundaryarea;
#'
#' rel(area.boundaryarea)[admin_level=8][boundary=administrative];
#' map_to_area -> .all_level_8_areas;
#'
#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;);
#' ( nwr(area.boundaryarea)[amenity=townhall]; >; );
#' is_in;
#' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall;
#'
#' (.all_level_8_areas; - .level_8_areas_with_townhall;);
#' rel(pivot);
#' (._;>;);
#' (._; >;);
#' out;'
#'
#' no_townhall <- osmdata_sc (q)
Expand Down
6 changes: 3 additions & 3 deletions R/get-osmdata-sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
#'
#' # Complex query as a string (not possible with regular osmdata functions)
#' q <- '[out:xml][timeout:50];
#' area["name"="Països Catalans"][boundary=political]->.boundaryarea;
#' area[name="Països Catalans"][boundary=political]->.boundaryarea;
#'
#' rel(area.boundaryarea)[admin_level=8][boundary=administrative];
#' map_to_area -> .all_level_8_areas;
#'
#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;);
#' ( nwr(area.boundaryarea)[amenity=townhall]; >; );
#' is_in;
#' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall;
#'
#' (.all_level_8_areas; - .level_8_areas_with_townhall;);
#' rel(pivot);
#' (._;>;);
#' (._; >;);
#' out;'
#'
#' no_townhall <- osmdata_sf (q)
Expand Down
6 changes: 3 additions & 3 deletions R/get-osmdata-sp.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
#'
#' # Complex query as a string (not possible with regular osmdata functions)
#' q <- '[out:xml][timeout:50];
#' area["name"="Països Catalans"][boundary=political]->.boundaryarea;
#' area[name="Països Catalans"][boundary=political]->.boundaryarea;
#'
#' rel(area.boundaryarea)[admin_level=8][boundary=administrative];
#' map_to_area -> .all_level_8_areas;
#'
#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;);
#' ( nwr(area.boundaryarea)[amenity=townhall]; >; );
#' is_in;
#' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall;
#'
#' (.all_level_8_areas; - .level_8_areas_with_townhall;);
#' rel(pivot);
#' (._;>;);
#' (._; >;);
#' out;'
#'
#' no_townhall <- osmdata_sp (q)
Expand Down
4 changes: 2 additions & 2 deletions R/get-osmdata-xml.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
#'
#' # Complex query as a string (not possible with regular osmdata functions)
#' q <- '[out:xml][timeout:50];
#' area["name"="Països Catalans"][boundary=political]->.boundaryarea;
#' area[name="Països Catalans"][boundary=political]->.boundaryarea;
#'
#' rel(area.boundaryarea)[admin_level=8][boundary=administrative];
#' map_to_area -> .all_level_8_areas;
#'
#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;);
#' ( nwr(area.boundaryarea)[amenity=townhall]; >; );
#' is_in;
#' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall;
#'
Expand Down
4 changes: 2 additions & 2 deletions man/osmdata_data_frame.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/osmdata_sc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/osmdata_sf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/osmdata_sp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/osmdata_xml.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4712d4

Please sign in to comment.