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
# library(clipr) | |
# library(prettycheck) # github.com/danielvartan/prettycheck | |
# library(rvest) | |
parse_html_table <- function(x = clipr::read_clip()) { | |
prettycheck:::assert_character(x) | |
x |> | |
paste0(collapse = " ") |> | |
rvest::read_html() |> |
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
# Source: https://stackoverflow.com/a/42827058/8258804 | |
ffmpeg -ss 00:01:00 -to 00:02:00 -i input.mp4 -c copy output.mp4 |
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
# Load packages ----- | |
library(magrittr) | |
library(ragg) | |
# Set options ----- | |
options(scipen = 999) | |
options(vsc.use_httpgd = 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
#' Convertion to title case with lower case for some classes of words. | |
#' | |
#' In written Portuguese, when converting to title case, it is not usual | |
#' to keep in title case some words, like prepositions, conjunctions, | |
#' articles and some kinds of pronouns. This functions locates those | |
#' cases and converts them to lower case. | |
#' | |
#' @param string vector of characters to be converted to title case | |
#' but with connector words (one-word prepositions and conjunctions) | |
#' and articles (both definite and indefinite) and some pronouns |
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
# Install the packages below (in the `library` function) if you don't | |
# already have them. | |
# library(checkmate) | |
# library(magrittr) | |
# library(purrr) | |
# library(readr) | |
# library(stringr) | |
#' List all files linked to a reference in a Zotero library |