Other packages > Find by keyword >

styler  

Non-Invasive Pretty Printing of R Code
View on CRAN: Click here


Download and install styler package within the R console
Install from CRAN:
install.packages("styler")

Install from Github:
library("remotes")
install_github("cran/styler")

Install by package version:
library("remotes")
install_version("styler", "1.10.3")



Attach the package and use:
library("styler")
Maintained by
Lorenz Walthert
[Scholar Profile | Author Map]
First Published: 2017-12-11
Latest Update: 2023-08-29
Description:
Pretty-prints R code without changing the user's formatting intent.
How to cite:
Lorenz Walthert (2017). styler: Non-Invasive Pretty Printing of R Code. R package version 1.10.3, https://cran.r-project.org/web/packages/styler. Accessed 31 Mar. 2025.
Previous versions and publish date:
1.0.0 (2017-12-11 13:52), 1.0.1 (2018-03-09 00:20), 1.0.2 (2018-06-26 21:22), 1.1.0 (2018-11-20 17:40), 1.1.1 (2019-05-06 23:50), 1.2.0 (2019-10-17 22:20), 1.3.0 (2020-02-10 23:30), 1.3.1 (2020-02-13 18:10), 1.3.2 (2020-02-23 06:50), 1.4.0 (2021-03-22 23:30), 1.4.1 (2021-03-30 18:10), 1.5.1 (2021-07-13 06:50), 1.6.1 (2021-09-17 10:10), 1.6.2 (2021-09-23 19:00), 1.7.0 (2022-03-14 00:00), 1.8.0 (2022-10-23 01:00), 1.8.1 (2022-11-08 00:40), 1.9.0 (2023-01-15 14:10), 1.9.1 (2023-03-05 00:50), 1.10.0 (2023-05-24 18:20), 1.10.1 (2023-06-05 17:40), 1.10.2 (2023-08-29 14:00)
Other packages that cited styler R package
View styler citation profile
Other R packages that styler depends, imports, suggests or enhances
Complete documentation for styler
Functions, R codes and Examples using the styler R package
Some associated functions: add_cache_block . add_id_and_short . add_roxygen_mask . add_spaces_or_newlines . add_stylerignore . add_token_terminal . alignment_col1_all_named . alignment_drop_comments . alignment_drop_last_expr . alignment_ensure_no_closing_brace . alignment_ensure_trailing_comma . alignment_has_correct_spacing_around_comma . alignment_has_correct_spacing_around_eq_sub . alignment_serialize . alignment_serialize_column . alignment_serialize_line . apply_ref_indention . apply_ref_indention_one . apply_stylerignore . apply_transformers . assert_filetype . assert_text . assert_tokens . assert_transformers . bind_with_child . cache_activate . cache_by_expression . cache_clear . cache_find_block . cache_find_path . cache_info . cache_is_activated . cache_make_key . cache_more_specs . cache_write . caching . calls_sys . catch_style_file_output . choose_indention . combine_children . communicate_summary . communicate_warning . compute_indent_indices . compute_parse_data_nested . construct_out . construct_tree . construct_vertical . contains_else_expr_that_needs_braces . context_to_terminals . context_towards_terminals . convert_newlines_to_linebreaks . copy_to_tempdir . create_node_from_nested . create_node_from_nested_root . create_pos_ids . create_style_guide . create_tokens . create_tree . default_style_guide_attributes . delete_if_cache_directory . dir_without_. . dir_without_._one . emulate_rd . enhance_mapping_special . enrich_terminals . ensure_correct_txt . ensure_last_n_empty . env_add_stylerignore . env_current . expressions_are_identical . extend_if_comment . extract_terminals . finalize_raw_chunks . find_blank_lines_to_next_block . find_blank_lines_to_next_expr . find_dont_seqs . find_line_break_position_in_multiline_call . find_pos_id_to_keep . find_start_pos_id . find_tokens_to_update . fix_quotes . flatten_operators . flatten_operators_one . flatten_pd . generate_test_samples . get_addins_style_transformer_name . get_engine_pattern . get_knitr_pattern . get_parse_data . has_crlf_as_first_line_sep . hash_standardize . identify_raw_chunks . identify_start_to_stop_of_roxygen_examples_from_text . if_for_while_part_requires_braces . initialize_attributes . invalid_utf8 . is_cached . is_code_chunk_header_or_xaringan_or_code_output . is_double_indent_function_declaration . is_insufficiently_parsed_string . is_shebang . local_test_setup . lookup_new_special . lookup_tokens . make_transformer . map_filetype_to_pattern . match_stop_to_start . math_token_spacing . n_times_faster_with_cache . needs_indention . needs_indention_one . needs_rd_emulation . nest_parse_data . next_non_comment . next_terminal . option_read . parse_roxygen . parse_safely . parse_transform_serialize_r . parse_transform_serialize_r_block . parse_transform_serialize_roxygen . parse_tree_must_be_identical . parser_version_set . pd_is . pd_is_multi_line . post_parse_roxygen . prettify_any . prettify_pkg . print.vertical . read_utf8 . read_utf8_bare . reindention . remove_dont_mask . remove_roxygen_header . rep_char . roxygen_remove_extra_brace . save_after_styling_is_active . scope_normalize . separate_chunks . serialize_parse_data_flattened . set_and_assert_arg_filetype . set_arg_paths . set_arg_write_tree . set_line_break_after_opening_if_call_is_multi_line . set_line_break_around_curly_curly . set_line_break_before_curly_opening . set_line_break_if_call_is_multi_line . set_multi_line . set_regex_indention . set_space_around_op . set_space_between_eq_sub_and_comma . set_space_between_levels . set_spaces . set_style_transformers . set_unindention_child . shallowify . specify_transformers_drop . split_roxygen_segments . start_comments_with_space . style_active_pkg . style_dir . style_file . style_guides . style_pkg . style_roxygen_code_example . style_roxygen_code_example_one . style_roxygen_code_example_segment . style_roxygen_example_snippet . style_selection . style_space_around_math_token . style_space_around_token . style_text . style_text_without_curly_curly . styler-package . styler_addins . stylerignore . stylerignore_consolidate_col . test_collection . test_dry . test_transformer . test_transformers_drop . testthat_file . text_to_flat_pd . tidyverse_style . token_is_on_aligned_line . tokenize . transform_and_check . transform_code . transform_file . transform_files . transform_mixed . transform_mixed_non_empty . transform_utf8 . transform_utf8_one . transformers_drop . try_transform_as_r_file . unindent_child . unindent_fun_dec . update_indention . update_indention_ref . update_newlines . validate_new_pos_ids . verify_roundtrip . visit . visit_one . wrap_else_multiline_curly . wrap_expr_in_curly . wrap_expr_in_expr . wrap_if_else_while_for_fun_multi_line_in_curly . wrap_multiline_curly . wrap_subexpr_in_curly . write_utf8 . 
Some associated R codes: addins.R . communicate.R . compat-dplyr.R . compat-tidyr.R . detect-alignment-utils.R . detect-alignment.R . environments.R . expr-is.R . indent.R . initialize.R . io.R . nest.R . nested-to-tree.R . parse.R . reindent.R . relevel.R . roxygen-examples-add-remove.R . roxygen-examples-find.R . roxygen-examples-parse.R . roxygen-examples.R . rules-indention.R . rules-line-breaks.R . rules-spaces.R . rules-tokens.R . serialize.R . set-assert-args.R . style-guides.R . styler-package.R . stylerignore.R . testing-mocks.R . testing-public-api.R . testing.R . token-create.R . token-define.R . transform-block.R . transform-code.R . transform-files.R . ui-caching.R . ui-styling.R . unindent.R . utils-cache.R . utils-files.R . utils-navigate-nest.R . utils-strings.R . utils.R . vertical.R . visit.R . zzz.R .  Full styler package functions and examples
Downloads during the last 30 days
03/0103/0203/0303/0403/0503/0603/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/29Downloads for styler6008001000120014001600180020002200TrendBars

Today's Hot Picks in Authors and Packages

tclust  
Robust Trimmed Clustering
Provides functions for robust trimmed clustering. The methods are described in Garcia-Escudero (200 ...
Download / Learn more Package Citations See dependency  
PermutationR  
Conduct Permutation Analysis of Variance in R
Conduct permutation One-Way or Two-Way Analysis of Variance in R. Use different permutation types fo ...
Download / Learn more Package Citations See dependency  
popbio  
Construction and Analysis of Matrix Population Models
Construct and analyze projection matrix models from a demography study of marked individuals classif ...
Download / Learn more Package Citations See dependency  
whitebox  
'WhiteboxTools' R Frontend
An R frontend for the 'WhiteboxTools' library, which is an advanced geospatial data analysis platfor ...
Download / Learn more Package Citations See dependency  
equivUMP  
Uniformly Most Powerful Invariant Tests of Equivalence
Implementation of uniformly most powerful invariant equivalence tests for one- and two-sample probl ...
Download / Learn more Package Citations See dependency  
bodycomp  
Percent Body Fat Values Using Anthropometric Prediction Equations
Skinfold measurements is one of the most popular and practical methods for estimating percent body f ...
Download / Learn more Package Citations See dependency  

23,842

R Packages

207,311

Dependencies

64,420

Author Associations

23,781

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA