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_packages"             "check_qs"                  
#>  [27] "check_quarto"               "check_rdata"               
#>  [29] "check_rds"                  "check_rstudio"             
#>  [31] "check_stack_in_memory"      "check_system_command"      
#>  [33] "check_tiff"                 "check_url"                 
#>  [35] "check_zip"                  "chelsa_var_info"           
#>  [37] "clear_console"              "clip_raster_by_polygon"    
#>  [39] "detect_alias"               "dir_size"                  
#>  [41] "extract_options"            "file_extension"            
#>  [43] "file_size"                  "file_type"                 
#>  [45] "find_duplicates"            "format_number"             
#>  [47] "function_arguments"         "get_chelsa_links"          
#>  [49] "get_mode"                   "get_option_with_default"   
#>  [51] "git_log"                    "ht"                        
#>  [53] "info_chunk"                 "integer_breaks"            
#>  [55] "keep_only"                  "lapply_"                   
#>  [57] "list_to_rdata"              "load_as"                   
#>  [59] "load_multiple"              "load_packages"             
#>  [61] "load_packages_future"       "load_tar_file"             
#>  [63] "loaded_packages"            "maxent_open"               
#>  [65] "maxent_variable_importance" "n_decimals"                
#>  [67] "n_unique"                   "nc_global_attributes"      
#>  [69] "nearest_dist_sf"            "normalize_path"            
#>  [71] "os"                         "package_functions"         
#>  [73] "package_remote_sha"         "pak_from_renv"             
#>  [75] "parent_dir"                 "polygon_centroid"          
#>  [77] "quiet_device"               "quietly"                   
#>  [79] "range_to_new_value"         "raster_to_pres_abs"        
#>  [81] "record_arguments"           "reload_package"            
#>  [83] "remove_options"             "rename_geometry"           
#>  [85] "replace_space"              "sapply_"                   
#>  [87] "save_as"                    "save_multiple"             
#>  [89] "save_session"               "save_session_info"         
#>  [91] "scale_0_1"                  "scrape_link"               
#>  [93] "script_location"            "set_geometry"              
#>  [95] "set_parallel"               "set_raster_crs"            
#>  [97] "sf_add_coords"              "source_silent"             
#>  [99] "split_df_to_chunks"         "split_raster"              
#> [101] "split_vector"               "stop_ctx"                  
#> [103] "system_command"             "text_to_coordinates"       
#> [105] "tibble_column_size"         "used_packages"             
#> [107] "write_nc"                   "zenodo_download_file"      
#> [109] "zenodo_file_list"          
# Error: package not found
 try(package_functions(package = "non_exist"))
#> Error in package_functions(package = "non_exist") : 
#>   package not found
#> 
#> ----- Metadata -----
#> 
#> package [package]: <character>
#> non_exist