Skip to content

Commit

Permalink
Address devtools::check()
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanzomorrodi committed Nov 23, 2024
1 parent 6808dce commit c137472
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Imports:
URL: https://ryanzomorrodi.github.io/sasquatch/, https://github.com/ryanzomorrodi/sasr
Suggests:
rmarkdown,
quarto,
testthat (>= 3.0.0),
curl
VignetteBuilder: knitr
Expand Down
25 changes: 23 additions & 2 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ configure_saspy <- function(

config <- list(
java = java_path,
iom_host = iom_host,
iomhost = iom_host,
iomport = 8591,
encoding = "utf-8",
authkey = "oda"
Expand Down Expand Up @@ -171,4 +171,25 @@ get_home_dir <- function() {
home_dir <- regmatches(home_dir, regexpr("(.*?[/|\\\\]){3}", home_dir))
}
sub("[/|\\\\]$", "", home_dir)
}
}

menu <- function(choices, title) {
nums <- seq_along(choices)
cat(title, "\n\n", sep = "")

mapply(
FUN = function(choice, num) {
cat(num, ": ", choice, "\n", sep = "")
},
choices,
nums
)
cat("\n")
repeat {
selection <- readline("Selection: ")
if (selection %in% as.character(c(0, nums))) {
return(as.integer(selection))
}
cat("Enter an item from the menu, or 0 to exit\n")
}
}
7 changes: 2 additions & 5 deletions vignettes/setting_up.qmd → vignettes/setting_up.rmd
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
---
title: "Setting Up"
format:
html:
toc: true
html-math-method: mathjax
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Setting Up}
%\VignetteEngine{quarto::html}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

Expand Down

0 comments on commit c137472

Please sign in to comment.