This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re, os | |
| regex = "```\{r (.+)\}" | |
| def name_chunks(f): | |
| """ | |
| This function takes a quarto (.qmd) file, checks for rmarkdown-style | |
| labels, and converts to quarto-style labels. If a quarto-style label | |
| exists, it preserves it (it checks the first line of the chunk metadata). | |
| If no label exists, it creates one based on the file name, in sequential order |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "save_workspace": "never", | |
| "remove_history_duplicates": true, | |
| "auto_detect_indentation": true, | |
| "insert_native_pipe_operator": true, | |
| "soft_wrap_r_files": true, | |
| "continue_comments_on_newline": true, | |
| "auto_append_newline": true, | |
| "strip_trailing_whitespace": true, | |
| "check_unexpected_assignment_in_function_call": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| snippet lib | |
| library(${1:package}) | |
| snippet req | |
| require(${1:package}) | |
| snippet src | |
| source("${1:file.R}") | |
| snippet ret |
OlderNewer