Package: sourcemodify 0.1.0
sourcemodify: Helper functions to modify source code of R scripts
Helper functions to modify source code of R scripts
Authors:
sourcemodify_0.1.0.tar.gz
sourcemodify_0.1.0.zip(r-4.5)sourcemodify_0.1.0.zip(r-4.4)sourcemodify_0.1.0.zip(r-4.3)
sourcemodify_0.1.0.tgz(r-4.4-any)sourcemodify_0.1.0.tgz(r-4.3-any)
sourcemodify_0.1.0.tar.gz(r-4.5-noble)sourcemodify_0.1.0.tar.gz(r-4.4-noble)
sourcemodify_0.1.0.tgz(r-4.4-emscripten)sourcemodify_0.1.0.tgz(r-4.3-emscripten)
sourcemodify.pdf |sourcemodify.html✨
sourcemodify/json (API)
# Install 'sourcemodify' in R: |
install.packages('sourcemodify', repos = c('https://repboxr.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/repboxr/sourcemodify/issues
Last updated 9 months agofrom:da2bd07e14 (on main). Checks:OK: 1 WARNING: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Aug 30 2024 |
R-4.5-win | WARNING | Aug 30 2024 |
R-4.5-linux | WARNING | Aug 30 2024 |
R-4.4-win | WARNING | Aug 30 2024 |
R-4.4-mac | WARNING | Aug 30 2024 |
R-4.3-win | WARNING | Aug 30 2024 |
R-4.3-mac | WARNING | Aug 30 2024 |
Exports:add_id_coldebug.check.modexampleextractFunArgsParseDatafind_descendant_idsfind_somo_descendant_idsfind_somo_fun_callfind.line.startsget.fun.args.defget.mod_df.valuegetAssignmentParseDatagetAugmentedParseDatagetFunCallsParseDatahas.colinit.somo.single.codematch.arg.with.args.dfpd_add_funidremove.colsomo_calls_infosomo_change_calls_fun_namesomo_find_fun_argsomo_find_fun_callsomo_foundsomo_initsomo_make_codesomo_make_mod_dfsomo_make_pd_codesomo_surround_callssomo_surround_calls_argsrcref_to_dfsys_calls_df
Dependencies:clidplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigR6restorepointrlangstringistringrstringtoolstibbletidyselectutf8vctrswithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Key internal function fo sourcemodify Returns parsed code as a tibble with detailed information where each subexpression is found in the code | getAugmentedParseData |
A simplified interface to somo_find_fun_arg | somo_calls_info |
Change the name of a called function without adapting any arguments | somo_change_calls_fun_name |
Find the text of the function argument in all calls to fun | somo_find_fun_arg |
Find the text of the function argument in all calls to fun | somo_find_fun_call |
Returns the results from the last somo_find_* call as a tibble | somo_found |
Init a new source modifier object | somo_init |
Returns the modified code of a somo object | somo_make_code |
Surround calls to the specified functions | somo_surround_calls |
Surround an argument of specific function | somo_surround_calls_arg |