Package: glamr 2.0.4

Aaron Chafetz

glamr: SI Utilities Package

Provides a series of base functions useful to the GH OHA SI team. This includes project setup, pulling from DATIM, and key functions for working with the MSD.

Authors:Aaron Chafetz [aut, cre], Tim Essam [aut], Baboyma Kagniniwa [aut], Benjamin Kasdan [aut]

glamr_2.0.4.tar.gz
glamr_2.0.4.zip(r-4.5)glamr_2.0.4.zip(r-4.4)glamr_2.0.4.zip(r-4.3)
glamr_2.0.4.tgz(r-4.4-any)glamr_2.0.4.tgz(r-4.3-any)
glamr_2.0.4.tar.gz(r-4.5-noble)glamr_2.0.4.tar.gz(r-4.4-noble)
glamr_2.0.4.tgz(r-4.4-emscripten)glamr_2.0.4.tgz(r-4.3-emscripten)
glamr.pdf |glamr.html
glamr/json (API)
NEWS

# Install 'glamr' in R:
install.packages('glamr', repos = c('https://usaid-oha-si.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/usaid-oha-si/glamr/issues

Datasets:

On CRAN:

7.39 score 2 stars 1 packages 1.3k scripts 51 exports 55 dependencies

Last updated 2 months agofrom:d1b3cc41c8. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-winWARNINGOct 30 2024
R-4.5-linuxWARNINGOct 30 2024
R-4.4-winWARNINGOct 30 2024
R-4.4-macWARNINGOct 30 2024
R-4.3-winWARNINGOct 30 2024
R-4.3-macWARNINGOct 30 2024

Exports:%<>%%>%%ni%clean_countriesclean_filenameconnect_textconvert_date_to_qtrconvert_datim_pd_to_qtrconvert_fy_qtr_to_pdconvert_qtr_to_datecurr_datedatim_pwddatim_userexport_drivefileextract_excel_dataextract_tbl_dataextract_textfolder_setupgdrive_foldergdrive_metadatagen_ref_idget_accountget_keyget_keysget_s3keyget_servicesimport_drivefileis_storedload_secretslookup_countryopen_pathpackage_checkpano_pwdpano_userpdap_accesspdap_bucketpdap_secretprinfreturn_latestset_accountset_datimset_emailset_keyset_panoset_pathsset_s3keyssetup_gitignoresetup_readmesi_pathsi_setuptemp_folder

Dependencies:askpassassertthatclicliprcpp11crayoncredentialscurldescdigestdplyrfansifilelockfsgarglegenericsgertghgitcredsgluegoogledrivehttrhttr2inijsonlitekeyringlifecyclelubridatemagrittrmimeopensslpillarpkgconfigpurrrR6rappdirsrlangrprojrootrstudioapisodiumstringistringrsystibbletidyrtidyselecttimechangeusethisutf8uuidvctrswhiskerwithryamlzip

Credential Management

Rendered fromcredential-management.Rmdusingknitr::rmarkdownon Oct 30 2024.

Last update: 2021-08-04
Started: 2020-12-06

Project Workflow

Rendered fromproject-workflow.Rmdusingknitr::rmarkdownon Oct 30 2024.

Last update: 2023-04-14
Started: 2021-08-04

Readme and manuals

Help Manual

Help pageTopics
Negate in%ni%
Clean Natural Earth Country names to match PEPFAR Dataclean_countries
Clean Filenameclean_filename
Clean and connect parts of text togetherconnect_text
Convert Date to FY Quarter/Periodconvert_date_to_qtr
Convert DATIM CY Quarter/Period to FY Quarterconvert_datim_pd_to_qtr
Convert Fiscal Year and Quarter into Periodconvert_fy_qtr_to_pd
Convert FY Quarter/Period to Dateconvert_qtr_to_date
Get formatted current datecurr_date
Return DATIM passworddatim_pwd
Return DATIM usernamedatim_user
Export local files for googledrive folderexport_drivefile
Extract data from excel linkextract_excel_data
Extract table data from web pageextract_tbl_data
Extract textextract_text
Setup Folder Structure in Projectfolder_setup
Get id of googledrive foldergdrive_folder
Unpack Google Drive Metadatagdrive_metadata
Generate Reference IDgen_ref_id
Get account detailsget_account
Get value of service key nameget_key
Get Service Keysget_keys
Get S3 Credentials - Access or Secret Access Keyget_s3key
Get Servicesget_services
Import file from a Google Drive folderimport_drivefile
Test if service is stored in credential manageris_stored
Load credentialsload_secrets
Lookup official Country namelookup_country
Open directory explorer or filesopen_path
Return PEPFAR Panorama passwordpano_pwd
Return PEPFAR Panorama usernamepano_user
Store PDAP Access Key credentialspdap_access
Access PDAP read/write bucketpdap_bucket
Store PDAP Secret Access Key credentialspdap_secret
Current List of PEPFAR OUs/Countries and their ISO codespepfar_country_list
Cross-walk of Country namespepfar_country_xwalk
Current PEPFAR Data Calendarpepfar_data_calendar
Print All Rowsprinf
Return Latest Filereturn_latest
Create / Update accountset_account
Store DATIM credentialsset_datim
Store USAID emailset_email
Set value for service nameset_key
Store PEPFAR Panorama credentialsset_pano
Set SI local folder pathsset_paths
Store S3 Credentialsset_s3keys
Setup gitignore in Projectsetup_gitignore
Setup README with Disclaimer in Projectsetup_readme
Access SI folderpathsi_path
Default SI Project Setupsi_setup
Generate Temporary Foldertemp_folder