Skip to content

Commit

Permalink
Update Create_the_MarkdownReports_Package.R
Browse files Browse the repository at this point in the history
  • Loading branch information
vertesy committed Nov 27, 2023
1 parent 1a6bda8 commit 3f02286
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions Development/Create_the_MarkdownReports_Package.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ source("~/GitHub/Packages/MarkdownReports/Development/config.R")
PackageTools::document_and_create_package(RepositoryDir, config_file = 'config.R')
'git add commit push to remote'


PackageTools::copy_github_badge("active")
# Install your package ------------------------------------------------
"disable rprofile by"
rprofile()
Expand Down Expand Up @@ -62,9 +62,27 @@ PackageTools::extract_package_dependencies(RepositoryDir)
# Try to find and add missing @importFrom statements------------------------------------------------
if (F) {
FNP <- list.files(file.path(RepositoryDir, "R"), full.names = T)
(excluded.packages <- unlist(strsplit(DESCRIPTION$'depends', split = ", ")))

devtools::load_all("~/GitHub/Packages/PackageTools/")

PackageTools::add_importFrom_statements(FNP, exclude_packages = excluded.packages)
# OLD: exclude_packages = c('Stringendo', 'MarkdownHelpers', 'ggplot2', 'ggpubr')
}

# Try to find and add missing @importFrom statements------------------------------------------------
if (F) {
devtools::load_all("~/GitHub/Packages/PackageTools/")
(excluded.packages <- unlist(strsplit(DESCRIPTION$'depends', split = ", ")))
(FNP <- list.files(file.path(RepositoryDir, "R"), full.names = T))
for (Fx in FNP) {
PackageTools::add_importFrom_statements(Fx, exclude_packages = excluded.packages)
}
}




# Generate the list of functions ------------------------------------------------
PackageTools::parse_roxygen(FNP)



0 comments on commit 3f02286

Please sign in to comment.