diff --git a/NAMESPACE b/NAMESPACE index dfcd2b6..f63564d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -17,6 +17,7 @@ export(get_dp_flags) export(get_elevation) export(get_park_polygon) export(get_taxon_rank) +export(get_user_email) export(get_utm_zone) export(long2UTM) export(order_cols) diff --git a/docs/news/index.html b/docs/news/index.html index 836f289..fd274e8 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -65,6 +65,7 @@
2024-07-09 * Added function get_user_email()
, which accesses NPS active directory via a powershell function to return the user’s email address. Probably won’t work for non-NPS users and probably won’t work for non-windows users. * Updated rest API from legacy v6 to current v7.
2024-06-28 * Updated get_park_polygon()
to use the new API (had been using a legacy API). Added documentation to specify that the function is getting the convexhull for the park, which may not work particularly well for some parks. 2024-06-27 * bug fixes for generate_ll_from_utm()
* add function remove_empty_tables()
(and associated unit tests) * update documentation for replace blanks()
to indicate it can replace blanks with more than just NA
Retrieves an NPS user's email address
+get_user_email()
String. The user's email address.
+The function accesses the system username and then uses a powershell wrapper to access NPS active directory and supply information about the user. That information is then parsed down to the user's email address.
+This function probaby won't work for anyone outside of NPS and likely won't work for anyone who is not using a Windows machine. So build those prerequisites (NPS = FALSE) in when calling it from within other function.
+if (FALSE) {
+email <- get_user_email()
+}
+
get_taxon_rank()
Taxonomic Rank Determination Function
Retrieves an NPS user's email address