All functions

add_import_component()

takes a vector of strings, adds a Babel style import statement

add_lines()

takes a vector of strings, adds another vector either before or after pattern provided.

change_to_proj_dir()

Useful function to find temp project name from temporary file in /tmp/HasHfolDER/.geoplumber.dat If that is not available (user could already be in a geoplumber directory) then just returns current wd.

get_os()

Internal helper function to determine OS in a consistent way.

gp_add_geojson()

For now, views a geojson served from an endpoint on leafletjs.

gp_add_slider()

Adds a basic slider with a callback function to parent.

gp_build()

Build npm packages

gp_change_file()

Change a source file in place

gp_check_clip_endpoint()

Basic sanity check of the plumber endpiont

gp_clean()

Function to clean the front end build for some reason.

gp_create()

Simulate CRA without create-react-app

gp_endpoint_from_clip()

Adds an endpoint function to the plumber.R from clipboard.

gp_erase()

Remove a geoplumber project and clean associated directories

gp_explore()

Explore an sf R object using Turing eAtlas.

gp_geojson()

Explore a geojson object from a remote URL on a map.

gp_install_node_instructions()

TODO: install node for different systems

gp_install_npm_package()

Install an npm package locally

gp_is_wd_geoplumber()

Helper function to determin if working dir is a geoplumber app.

gp_kill_process()

Wrapper function to kill what is listening on a particular port.

gp_map()

Export geojson object on a map.

gp_npm_exists()

Essential checks for certain functions of geoplumber.

gp_plumb()

Launch a webserver via plumber to serve data

gp_plumb_front()

Wrapper function to view front end using dev server.

gp_remove_lines()

Remove lines from a source file in place

gp_rstudio()

Wrapper function to copy template.Rproj file into working directory.

gp_sf()

Explore an sf R object on a leaflet map.

is_port_engated()

Internal function to determine if port is engaed.

read_tempfile()

returns the project name from the temp file

tempfile_name()

generates a temporary file name /tmp/HasHfolDER

traffic

Traffic data from CDRC data sets

traffic_casualties_2014

Road traffic casualties

traffic_network

Small sample of road network in an sf object.

traffic_volumes

Traffic data from CDRC data sets

uni_point

sf object representing the university of Leeds