Skip to content

Commit

Permalink
add function to install lmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanocoretta committed Jan 28, 2024
1 parent fa9d09c commit 9a0d25d
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 5 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: speakr
Type: Package
Title: A Wrapper for the Phonetic Software 'Praat'
Version: 3.2.1
Version: 3.2.1.9000
Date: 2022-09-04
Authors@R: person("Stefano", "Coretta", email = "[email protected]",
role = c("aut", "cre"),
Expand All @@ -14,9 +14,10 @@ License: MIT + file LICENSE
URL: https://github.com/stefanocoretta/speakr
BugReports: https://github.com/stefanocoretta/speakr/issues
Encoding: UTF-8
RoxygenNote: 7.2.1
RoxygenNote: 7.3.1
Imports: ggplot2,
lifecycle,
quarto,
readr,
stringr,
tibble
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(add_lmt)
export(praat_open)
export(praat_plot)
export(praat_run)
Expand Down
9 changes: 8 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# speaker v3.2.1
# speakr v3.2.0.9000

## Added

- `add_lmt()` to add the Quarto extension Literate Markdown Tangler.


# speakr v3.2.1

## Fixed

Expand Down
20 changes: 20 additions & 0 deletions R/lmt-ext.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#' Install the Literate Markdown Tangler extension
#'
#' It installs the Quarto extension Literate Markdown Tangler, which provides
#' users with literate programming tools.
#'
#' @return Nothing. Used for its side effects.
#'
#' @examples
#' \dontrun{
#' add_lmt()
#' }
#'
#' @export
add_lmt <- function() {
q_path <- quarto::quarto_path()
if (!is.null(q_path)) {
system(paste0("quarto add --no-prompt stefanocoretta/lmt"))
cli::cli_alert_success("LMT extension installed!")
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

[![](https://www.r-pkg.org/badges/version/speakr?color=blue)](https://cran.r-project.org/package=speakr)
[![CRAN
checks](https://cranchecks.info/badges/summary/speakr)](https://cran.r-project.org/web/checks/check_results_speakr.html)
checks](https://badges.cranchecks.info/summary/speakr.svg)](https://cran.r-project.org/web/checks/check_results_speakr.html)
[![R-CMD-check](https://github.com/stefanocoretta/speakr/workflows/R-CMD-check/badge.svg)](https://github.com/stefanocoretta/speakr/actions)
[![](https://img.shields.io/badge/devel%20version-3.2.1-orange.svg)](https://github.com/stefanocoretta/speakr)
[![](https://img.shields.io/badge/devel%20version-3.2.1.9000-orange.svg)](https://github.com/stefanocoretta/speakr)
[![](https://img.shields.io/badge/doi-10.5281/zenodo.4014768-blue.svg)](https://doi.org/10.5281/zenodo.4014768)
<!-- badges: end -->

Expand Down
21 changes: 21 additions & 0 deletions man/add_lmt.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified man/figures/README-vowel-plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,18 @@
],
"Hash": "2a0dc8c6adfb6f032e4d4af82d258ab5"
},
"packrat": {
"Package": "packrat",
"Version": "0.9.2",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"tools",
"utils"
],
"Hash": "55ddd2d4a1959535f18393478b0c14a6"
},
"pillar": {
"Package": "pillar",
"Version": "1.9.0",
Expand Down Expand Up @@ -1171,6 +1183,23 @@
],
"Hash": "1cba04a4e9414bdefc9dcaa99649a8dc"
},
"quarto": {
"Package": "quarto",
"Version": "1.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"jsonlite",
"later",
"processx",
"rmarkdown",
"rsconnect",
"rstudioapi",
"utils",
"yaml"
],
"Hash": "79e1cff980960b566ddc4ddb1a49a13d"
},
"ragg": {
"Package": "ragg",
"Version": "1.2.7",
Expand Down Expand Up @@ -1355,6 +1384,28 @@
],
"Hash": "4c8415e0ec1e29f3f4f6fc108bef0144"
},
"rsconnect": {
"Package": "rsconnect",
"Version": "1.2.0",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"cli",
"curl",
"digest",
"jsonlite",
"lifecycle",
"openssl",
"packrat",
"renv",
"rlang",
"rstudioapi",
"tools",
"yaml"
],
"Hash": "c064d4993aedbf6c383041d1606aabeb"
},
"rstudioapi": {
"Package": "rstudioapi",
"Version": "0.15.0",
Expand Down

0 comments on commit 9a0d25d

Please sign in to comment.