Package: filesstrings 3.4.0
filesstrings: Handy File and String Manipulation
This started out as a package for file and string manipulation. Since then, the 'fs' and 'strex' packages emerged, offering functionality previously given by this package (but it's done better in these new ones). Those packages have hence almost pushed 'filesstrings' into extinction. However, it still has a small number of unique, handy file manipulation functions which can be seen in the vignette. One example is a function to remove spaces from all file names in a directory.
Authors:
filesstrings_3.4.0.tar.gz
filesstrings_3.4.0.zip(r-4.5)filesstrings_3.4.0.zip(r-4.4)filesstrings_3.4.0.zip(r-4.3)
filesstrings_3.4.0.tgz(r-4.4-any)filesstrings_3.4.0.tgz(r-4.3-any)
filesstrings_3.4.0.tar.gz(r-4.5-noble)filesstrings_3.4.0.tar.gz(r-4.4-noble)
filesstrings_3.4.0.tgz(r-4.4-emscripten)filesstrings_3.4.0.tgz(r-4.3-emscripten)
filesstrings.pdf |filesstrings.html✨
filesstrings/json (API)
NEWS
# Install 'filesstrings' in R: |
install.packages('filesstrings', repos = c('https://rorynolan.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rorynolan/filesstrings/issues
Last updated 10 months agofrom:b9e4b5fcbc. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 22 2024 |
R-4.5-win | OK | Nov 22 2024 |
R-4.5-linux | OK | Nov 22 2024 |
R-4.4-win | OK | Nov 22 2024 |
R-4.4-mac | OK | Nov 22 2024 |
R-4.3-win | OK | Nov 22 2024 |
R-4.3-mac | OK | Nov 22 2024 |
Exports:after_firstafter_lastafter_nthall_equalalphord_numsbefore_firstbefore_lastbefore_last_dotbefore_nthcan_be_numericcreate_dirdir.removeelemelemsextend_char_vecextract_currenciesextract_non_numericsextract_numbersfile.movefirst_currencyfirst_non_numericfirst_numberfirst_number_after_firstfirst_number_after_lastfirst_number_after_mthfirst_number_before_firstfirst_number_before_lastfirst_number_before_mthgive_extgroup_closelast_currencylast_non_numericlast_numberlast_number_after_firstlast_number_after_lastlast_number_after_mthlast_number_before_firstlast_number_before_lastlast_number_before_mthlocate_braceslocate_firstlocate_lastlocate_nthmatch_argmove_filesnice_file_numsnice_numsnth_currencynth_non_numericnth_numbernth_number_after_firstnth_number_after_lastnth_number_after_mthnth_number_before_firstnth_number_before_lastnth_number_before_mthpaste_elemsput_in_posremove_dirremove_filename_spacesremove_quotedrename_with_numssingleizesplit_by_numberssplit_by_numssplit_camel_casestr_after_firststr_after_laststr_after_nthstr_alphord_numsstr_before_firststr_before_laststr_before_last_dotstr_before_nthstr_can_be_numericstr_elemstr_elemsstr_extend_char_vecstr_extract_currenciesstr_extract_non_numericsstr_extract_numbersstr_first_currencystr_first_non_numericstr_first_numberstr_first_number_after_firststr_first_number_after_laststr_first_number_after_mthstr_first_number_before_firststr_first_number_before_laststr_first_number_before_mthstr_give_extstr_last_currencystr_last_non_numericstr_last_numberstr_last_number_after_firststr_last_number_after_laststr_last_number_after_mthstr_last_number_before_firststr_last_number_before_laststr_last_number_before_mthstr_locate_bracesstr_locate_firststr_locate_laststr_locate_nthstr_match_argstr_nice_numsstr_nth_currencystr_nth_non_numericstr_nth_numberstr_nth_number_after_firststr_nth_number_after_laststr_nth_number_after_mthstr_nth_number_before_firststr_nth_number_before_laststr_nth_number_before_mthstr_paste_elemsstr_put_in_posstr_remove_quotedstr_singleizestr_split_by_numbersstr_split_by_numsstr_split_camel_casestr_to_vecstr_trim_anythingto_vectrim_anythingunitize_dirs
Dependencies:backportscheckmatecligluelifecyclemagrittrpurrrrlangstrexstringistringrvctrswithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
An alternative version of 'base::all.equal()'. | all_equal |
Get the part of a string before the last period. | before_last_dot str_before_last_dot |
Check if a string could be considered as numeric. | can_be_numeric str_can_be_numeric |
Create directories if they don't already exist | create_dir |
Get the currencies of numbers within a string. | currency extract_currencies first_currency last_currency nth_currency str_extract_currencies str_first_currency str_last_currency str_nth_currency |
Pad a character vector with empty strings. | extend_char_vec str_extend_char_vec |
Extract non-numbers from a string. | extract_non_numerics first_non_numeric last_non_numeric nth_non_numeric str_extract_non_numerics str_first_non_numeric str_last_non_numeric str_nth_non_numeric |
Extract numbers from a string. | extract_numbers first_number last_number nth_number str_extract_numbers str_first_number str_last_number str_nth_number |
'filesstrings': handy file and string manipulation | filesstrings-package filesstrings |
Group together close adjacent elements of a vector. | group_close |
Locate the braces in a string. | locate_braces str_locate_braces |
Argument Matching | match_arg str_match_arg |
Move files around. | file.move move_files |
Make file numbers comply with alphabetical order | nice_file_nums |
Find the 'n'th number after the 'm'th occurrence of a pattern. | first_number_after_first first_number_after_last first_number_after_mth last_number_after_first last_number_after_last last_number_after_mth nth_number_after_first nth_number_after_last nth_number_after_mth str_first_number_after_first str_first_number_after_last str_first_number_after_mth str_last_number_after_first str_last_number_after_last str_last_number_after_mth str_nth_number_after_first str_nth_number_after_last str_nth_number_after_mth |
Find the 'n'th number before the 'm'th occurrence of a pattern. | first_number_before_first first_number_before_last first_number_before_mth last_number_before_first last_number_before_last last_number_before_mth nth_number_before_first nth_number_before_last nth_number_before_mth str_first_number_before_first str_first_number_before_last str_first_number_before_mth str_last_number_before_first str_last_number_before_last str_last_number_before_mth str_nth_number_before_first str_nth_number_before_last str_nth_number_before_mth |
Put specified strings in specified positions in an otherwise empty character vector. | put_in_pos str_put_in_pos |
Remove directories | dir.remove remove_dir |
Remove spaces in file names | remove_filename_spaces |
Replace file names with numbers | rename_with_nums |
Text after the 'n'th occurrence of pattern. | after_first after_last after_nth str_after_first str_after_last str_after_nth |
Text before the 'n'th occurrence of pattern. | before_first before_last before_nth str_before_first str_before_last str_before_nth |
Extract a single character from a string, using its index. | elem str_elem |
Extract several single elements from a string. | elems str_elems |
Ensure a file name has the intended extension. | give_ext str_give_ext |
Get the indices of the nth instance of a pattern. | locate_first locate_last locate_nth str_locate_first str_locate_last str_locate_nth |
Make string numbers comply with alphabetical order. | alphord_nums nice_nums str_alphord_nums str_nice_nums |
Extract bits of a string and paste them together. | paste_elems str_paste_elems |
Remove the quoted parts of a string. | remove_quoted str_remove_quoted |
Remove back-to-back duplicates of a pattern in a string. | singleize str_singleize |
Split a string by its numeric characters. | split_by_numbers split_by_nums str_split_by_numbers str_split_by_nums |
Split a string based on CamelCase | split_camel_case str_split_camel_case |
Convert a string to a vector of characters | str_to_vec to_vec |
Trim something other than whitespace. | str_trim_anything trim_anything |
Put files with the same unit measurements into directories | unitize_dirs |