This function returns a character vector listing all the functions available in the specified R package. It first checks if the package is installed and can be loaded; if not, it raises an error.
Examples
str(package_functions(package = "raster"))
#> chr [1:281] "%in%" "Arith" "Compare" "Geary" "GearyLocal" "KML" "Logic" ...
str(package_functions(package = "sf"))
#> chr [1:156] "%>%" "FULL_bbox_" "NA_agr_" "NA_bbox_" "NA_crs_" ...
package_functions(package = "ecokit")
#> [1] "%>%" "add_cross_to_grid"
#> [3] "add_diagonals_to_grid" "add_image_to_plot"
#> [5] "add_line" "add_missing_columns"
#> [7] "all_objects_sizes" "arrange_alphanum"
#> [9] "assign_env_vars" "assign_from_options"
#> [11] "assign_if_not_exist" "bash_variables"
#> [13] "boundary_to_wkt" "cat_diff"
#> [15] "cat_names" "cat_sep"
#> [17] "cat_time" "cc"
#> [19] "check_args" "check_data"
#> [21] "check_env_file" "check_feather"
#> [23] "check_gbif" "check_image"
#> [25] "check_qs" "check_quarto"
#> [27] "check_rdata" "check_rds"
#> [29] "check_rstudio" "check_stack_in_memory"
#> [31] "check_system_command" "check_tiff"
#> [33] "check_url" "check_zip"
#> [35] "chelsa_var_info" "clear_console"
#> [37] "clip_raster_by_polygon" "detect_alias"
#> [39] "dir_size" "extract_options"
#> [41] "file_extension" "file_size"
#> [43] "file_type" "find_duplicates"
#> [45] "function_arguments" "get_chelsa_links"
#> [47] "get_mode" "git_log"
#> [49] "ht" "info_chunk"
#> [51] "integer_breaks" "keep_only"
#> [53] "lapply_" "list_to_rdata"
#> [55] "load_as" "load_multiple"
#> [57] "load_packages" "load_packages_future"
#> [59] "load_tar_file" "loaded_packages"
#> [61] "maxent_open" "maxent_variable_importance"
#> [63] "n_decimals" "n_unique"
#> [65] "nc_global_attributes" "normalize_path"
#> [67] "os" "package_functions"
#> [69] "package_remote_sha" "pak_from_renv"
#> [71] "parent_dir" "polygon_centroid"
#> [73] "quiet_device" "quietly"
#> [75] "range_to_new_value" "raster_to_pres_abs"
#> [77] "record_arguments" "reload_package"
#> [79] "remove_options" "rename_geometry"
#> [81] "replace_space" "sapply_"
#> [83] "save_as" "save_multiple"
#> [85] "save_session" "save_session_info"
#> [87] "scale_0_1" "scrape_link"
#> [89] "script_location" "set_geometry"
#> [91] "set_parallel" "set_raster_crs"
#> [93] "sf_add_coords" "source_silent"
#> [95] "split_df_to_chunks" "split_raster"
#> [97] "split_vector" "stop_ctx"
#> [99] "system_command" "text_to_coordinates"
#> [101] "tibble_column_size" "used_packages"
#> [103] "write_nc" "zenodo_download_file"
#> [105] "zenodo_file_list"
if (FALSE) { # \dontrun{
# Error: package not found
package_functions(package = "non_exist")
} # }