Package: OpenMindat 1.0.0

Xiang Que

OpenMindat: Quickly Retrieve Datasets from the 'Mindat' API

The goal of OpenMindat R package is to provide functions for users or machines to quickly and easily retrieve datasets from the mindat.org API (<https://api.mindat.org/schema/redoc/>).

Authors:Xiang Que [aut, cre], Xiaogang Ma [aut]

OpenMindat_1.0.0.tar.gz
OpenMindat_1.0.0.zip(r-4.5)OpenMindat_1.0.0.zip(r-4.4)OpenMindat_1.0.0.zip(r-4.3)
OpenMindat_1.0.0.tgz(r-4.4-any)OpenMindat_1.0.0.tgz(r-4.3-any)
OpenMindat_1.0.0.tar.gz(r-4.5-noble)OpenMindat_1.0.0.tar.gz(r-4.4-noble)
OpenMindat_1.0.0.tgz(r-4.4-emscripten)OpenMindat_1.0.0.tgz(r-4.3-emscripten)
OpenMindat.pdf |OpenMindat.html
OpenMindat/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/quexiang/openmindat/issues

On CRAN:

101 exports 35 stars 3.09 score 47 dependencies 3 scripts 139 downloads

Last updated 7 months agofrom:1358a5b6c9. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 17 2024
R-4.5-winNOTESep 17 2024
R-4.5-linuxNOTESep 17 2024
R-4.4-winNOTESep 17 2024
R-4.4-macNOTESep 17 2024
R-4.3-winNOTESep 17 2024
R-4.3-macNOTESep 17 2024

Exports:ConvertDF2JsonLDConvertDF2TTLgeomaterials_bi_greater_thangeomaterials_bi_less_thangeomaterials_bi_rangegeomaterials_by_groupidgeomaterials_cleavagetypegeomaterials_colourgeomaterials_contain_all_but_not_elemsgeomaterials_contain_all_elemsgeomaterials_contain_any_but_not_elemsgeomaterials_contain_any_elemsgeomaterials_contain_only_elemsgeomaterials_crystal_systemgeomaterials_dens_greater_thangeomaterials_dens_less_thangeomaterials_dens_rangegeomaterials_diaphenygeomaterials_entrytypegeomaterials_expandgeomaterials_field_existsgeomaterials_fracturetypegeomaterials_hardness_gtgeomaterials_hardness_ltgeomaterials_hardness_rangegeomaterials_imageomaterials_ima_notesgeomaterials_ima_statusgeomaterials_lustretypegeomaterials_meteoritical_codegeomaterials_namegeomaterials_not_contain_elemsgeomaterials_optical2v_maxgeomaterials_optical2v_mingeomaterials_optical2v_rangegeomaterials_opticalsigngeomaterials_opticaltypegeomaterials_polytypeofgeomaterials_ri_gtgeomaterials_ri_ltgeomaterials_ri_rangegeomaterials_search_namegeomaterials_streakgeomaterials_synidgeomaterials_updated_atgeomaterials_varietyofgeomeaterials_non_utfgeomeaterials_orderinggetExtensionlocalities_list_alllocalities_list_countrylocalities_list_descriptionlocalities_list_elems_exclocalities_list_elems_inclocalities_list_elems_inc_exclocalities_list_expandlocalities_list_txtlocalities_list_updated_atlocalities_retrieve_idlocalities_status_listlocalities_status_retrievelocality_agelocality_age_listlocality_type_listmindat_build_querystringmindat_cache_deletemindat_cache_emptymindat_cache_getmindat_cache_hasmindat_cache_return_or_setupmindat_cache_setmindat_connectionmindat_countriesmindat_countrymindat_extract_response_bodymindat_geomaterialmindat_geomaterial_listmindat_geomaterial_searchmindat_geomaterial_varietiesmindat_get_data_from_urimindat_localities_listmindat_localitiymindat_locality_statusmindat_locality_status_listmindat_locality_typemindat_locality_type_listmindat_make_data_framemindat_mineral_imamindat_mineral_ima_listmindat_parse_raw_datamindat_querymindat_setupminerals_ima_listminerals_ima_list_expandminerals_ima_list_imaminerals_ima_retrieveparams_to_stringsaveMindatDataAsset_api_baseset_api_tokenset_page_size

Dependencies:askpasscellrangerclicliprcpp11crayoncredentialscurldescfansifsgertghgitcredsgluehmshttrhttr2inijsonlitelifecyclemagrittrmimeopensslpillarpkgconfigprettyunitsprogresspurrrR6rappdirsreadxlrematchrlangrprojrootrstudioapistringistringrsystibbleusethisutf8vctrswhiskerwithryamlzip

Mindat Data

Rendered fromMindat_data.Rmdusingknitr::rmarkdownon Sep 17 2024.

Last update: 2023-11-19
Started: 2023-06-23

OpenMindat

Rendered fromOpenMindat.Rmdusingknitr::rmarkdownon Sep 17 2024.

Last update: 2023-11-19
Started: 2023-06-23

Readme and manuals

Help Manual

Help pageTopics
Output file as a given formatConvertDF2JsonLD
Convert a dataframe to a string of TTL formatConvertDF2TTL
retrieve the geomaterials whose birifrigence are higher than the given value.geomaterials_bi_greater_than
retrieve the geomaterials whose birifrigence are lower density than the given value.geomaterials_bi_less_than
retrieve the geomaterials whose birifrigence are higher and lower than the given value.geomaterials_bi_range
retrieve the geomaterials by an given value of groupid.geomaterials_by_groupid
geomaterials that match an given cleavagetypegeomaterials_cleavagetype
geomaterials that have the given colorsgeomaterials_colour
geomaterials that contain all of some given elements but without any of some other given elements.geomaterials_contain_all_but_not_elems
geomaterials_contain_all_elemsgeomaterials_contain_all_elems
geomaterials that contain any of some given elements but with out any of some other given elementsgeomaterials_contain_any_but_not_elems
geomaterials that contain any one of the given elementsgeomaterials_contain_any_elems
geomaterials_contain_only_elemsgeomaterials_contain_only_elems
geomaterials that have the given crystalgeomaterials_crystal_system
retrieve the geomaterials whose density are higher than a given value.geomaterials_dens_greater_than
retrieve the geomaterials whose density are lower density than a given value.geomaterials_dens_less_than
retrieve the geomaterials whose density are within an given value.geomaterials_dens_range
retrieve the geomaterials that have an given diapheny.geomaterials_diapheny
retrieve the geomaterials that have the given entrytypegeomaterials_entrytype
retrieve the geomaterials that have the given expand.geomaterials_expand
retrieve the geomaterials records of empty or not empty of a given field.geomaterials_field_exists
retrieve the geomaterials that have the given fracturetype.geomaterials_fracturetype
retrieve the geomaterials whose hardness are higher than an given value.geomaterials_hardness_gt
retrieve the geomaterials whose hardness are lower than an given value.geomaterials_hardness_lt
retrieve the geomaterials whose hardness is within the given range.geomaterials_hardness_range
retrieve the geomaterials approved by IMA or not.geomaterials_ima
retrieve the geomaterials match given notes.geomaterials_ima_notes
retrieve the geomaterials matched given IMA status.geomaterials_ima_status
retrieve the geomaterials that match an given lustretype.geomaterials_lustretype
retrieve the geomaterials matched a given string in its meteoritical code.geomaterials_meteoritical_code
retrieve the geomaterials matched a given string in its name.geomaterials_name
geomaterials that do not contain the elementsgeomaterials_not_contain_elems
retrieve the geomaterials that less than the given optical 2v.geomaterials_optical2v_max
retrieve the geomaterials that has higher value than the given optical 2v.geomaterials_optical2v_min
retrieve the geomaterials that has the given range of optical 2v.geomaterials_optical2v_range
retrieve the geomaterials that match an given optical signs.geomaterials_opticalsign
retrieve the geomaterials that match an given optical type.geomaterials_opticaltype
retrieve the geomaterials by an given id of polytype of (the id of the mineral that this record is the polytype of. )geomaterials_polytypeof
retrieve the geomaterials that refractive index higher than an given value(gt).geomaterials_ri_gt
retrieve the geomaterials that refractive index lower than an given value(lt).geomaterials_ri_lt
retrieve the geomaterials whose refractive index is within an given range(gt,lt).geomaterials_ri_range
retrieve the geomaterials by a given name.geomaterials_search_name
retrieve the geomaterials that match an given streak.geomaterials_streak
retrieve the geomaterials by an given synid.geomaterials_synid
retrieve the geomaterials updated at an given time.geomaterials_updated_at
retrieve the geomaterials that are varieties of an given id of geomaterials.geomaterials_varietyof
retrieve the geomaterials that include non-utf mineral names or not.geomeaterials_non_utf
retrieve the geomaterials by an given ordering.geomeaterials_ordering
Output the file extension of a filenamegetExtension
retrieve the localities list.localities_list_all
retrieve the localities list that are belong to a given country.localities_list_country
retrieve the localities that contain the given descriptionlocalities_list_description
localities that do not contain the given elementslocalities_list_elems_exc
localities that contain the given elementslocalities_list_elems_inc
localities that contain the given elements but not contain some other given elements.localities_list_elems_inc_exc
localities that contain the given expands.localities_list_expand
localities that contain the given txt name.localities_list_txt
retrieve the localities list updated at the given time.localities_list_updated_at
retrieve the localities by a given mindat id.localities_retrieve_id
localities_status_listlocalities_status_list
localities_status_retrievelocalities_status_retrieve
localitiy_type_retrievelocalitiy_type_retrieve
locality_agelocality_age
locality_age_listlocality_age_list
locality_type_listlocality_type_list
mindat_build_querystringmindat_build_querystring
Delete a cached value by the users input varnamemindat_cache_delete
Remove all cached valuesmindat_cache_empty
Get cache valuemindat_cache_get
Check if the current environment has the cached value of varname.mindat_cache_has
Check if the current environment has the cached function named varname.mindat_cache_return_or_setup
Set cache name and valuemindat_cache_set
Initializing Mindat APImindat_connection
mindat_countriesmindat_countries
mindat_countrymindat_country
mindat_extract_response_bodymindat_extract_response_body
mindat_geomaterialmindat_geomaterial
mindat_geomaterial_listmindat_geomaterial_list
mindat_geomaterial_searchmindat_geomaterial_search
mindat_geomaterial_varietiesmindat_geomaterial_varieties
mindat_get_data_from_urimindat_get_data_from_uri
mindat_localities_listmindat_localities_list
mindat_localitiymindat_localitiy
mindat_locality_statusmindat_locality_status
mindat_locality_status_listmindat_locality_status_list
mindat_locality_typemindat_locality_type
mindat_locality_type_listmindat_locality_type_list
mindat_make_data_framemindat_make_data_frame
mindat_mineral_imamindat_mineral_ima
mindat_mineral_ima_listmindat_mineral_ima_list
mindat_parse_raw_datamindat_parse_raw_data
mindat_querymindat_query
mindat_setupmindat_setup
minerals_ima_listminerals_ima_list
minerals_ima_list_expandminerals_ima_list_expand
minerals_ima_list_imaminerals_ima_list_ima
minerals_ima_retrieveminerals_ima_retrieve
retrieve the mineral_ima list updated at the given time.minerals_ima_updated_at
params_to_stringparams_to_string
Output file as a given formatsaveMindatDataAs
set_api_baseset_api_base
set_api_tokenset_api_token
set_page_sizeset_page_size