Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mejoraras a publica wiki #156

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions R/publish_wiki.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#'
#' @export

publish_wiki <- function(report, path_wiki_repo, automatic_update = FALSE,
publish_wiki <- function(report, path_wiki_repo, automatic_update = FALSE, new_file_name = NULL,
quiet_render_logs = FALSE) {

# Get the report extension
Expand All @@ -53,7 +53,7 @@ publish_wiki <- function(report, path_wiki_repo, automatic_update = FALSE,



# Repare path_wiki_repo
# Repare path_wiki_repo.

if (stringr::str_sub(path_wiki_repo,
start = stringr::str_length(path_wiki_repo)) == "/") {
Expand Down Expand Up @@ -87,7 +87,9 @@ publish_wiki <- function(report, path_wiki_repo, automatic_update = FALSE,

dot_name <- paste0(".",extension)

base_name <- stringr::str_remove_all(basename(report), dot_name)
base_name <- ifelse(is.null(new_file_name),
stringr::str_remove_all(basename(report), dot_name),
new_file_name)


md <- paste0(base_name, ".md")
Expand Down
1 change: 0 additions & 1 deletion ixplorer.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageCleanBeforeInstall: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace,vignette