GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rfars/update_process.R at master · s87jackson/rfars

Expand file tree

/

update_process.R

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
91 lines (73 loc) · 3.46 KB
/

update_process.R

Copy path

File metadata and controls

91 lines (73 loc) · 3.46 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Package Update Process
# Run this script step by step to update the rfars package
# Delete data folders and vignette outputs ----
temp_rtmp <- dir(path = "C:/Users/SteveJackson/AppData/Local/Temp", pattern = "Rtmp", recursive = TRUE, full.names = TRUE, ignore.case = TRUE, include.dirs = TRUE)
temp_fars <- dir(path = "C:/Users/SteveJackson/AppData/Local/Temp", pattern = "FARS data", recursive = TRUE, full.names = TRUE, ignore.case = TRUE, include.dirs = TRUE)
temp_gescrss <- dir(path = "C:/Users/SteveJackson/AppData/Local/Temp", pattern = "GESCRSS data", recursive = TRUE, full.names = TRUE, ignore.case = TRUE, include.dirs = TRUE)
proj_fars <- dir(path = "C:/Users/SteveJackson/OneDrive - Toxcel/rfars", pattern = "FARS data", recursive = TRUE, full.names = TRUE, ignore.case = TRUE, include.dirs = TRUE)
proj_gescrss <- dir(path = "C:/Users/SteveJackson/OneDrive - Toxcel/rfars", pattern = "GESCRSS data", recursive = TRUE, full.names = TRUE, ignore.case = TRUE, include.dirs = TRUE)
all_paths <- c(temp_rtmp, temp_fars, temp_gescrss, proj_fars, proj_gescrss)
# Remove duplicates and delete
if (length(all_paths) > 0) {
all_paths <- unique(all_paths)
message(sprintf("Deleting %d folder(s)...", length(all_paths)))
for (path in all_paths) {
message(sprintf(" Deleting: %s", path))
unlink(path, recursive = TRUE, force = TRUE)
}
message("Data folders deleted successfully")
} else {
message("No data folders found to delete")
}
# Clean environment ----
rm(list = ls())
# Document ----
devtools::document(roclets = c('rd', 'collate', 'namespace', 'vignette'))
# Clean and install ----
message("MANUAL STEP: In RStudio: Build >> Install >> Clean and install")
readline(prompt = "Press [enter] to continue after clean install")
# Remove old check directory ----
message("Removing old check directory...")
unlink("C:/Users/SteveJackson/OneDrive - Toxcel/rfars.Rcheck", recursive = TRUE)
# Check package ----
message("Running devtools::check()...")
devtools::check(args = c('--as-cran'), check_dir = tempdir())
# Move Claude files ----
message("Moving Claude files to in_development...")
# Move .claude folder if it exists
if (dir.exists(".claude")) {
message(" Moving .claude folder...")
file.copy(".claude", "in_development", recursive = TRUE, overwrite = TRUE)
unlink(".claude", recursive = TRUE)
}
# Move CLAUDE.md files
claude_md_files <- list.files(pattern = "^CLAUDE.*\\.md$", full.names = TRUE, recursive = FALSE)
if (length(claude_md_files) > 0) {
for (file in claude_md_files) {
message(sprintf(" Moving %s...", basename(file)))
file.copy(file, file.path("in_development", basename(file)), overwrite = TRUE)
file.remove(file)
}
}
message("Claude files moved successfully")
# Delete docs folder ----
message("Deleting docs folder...")
if (dir.exists("docs")) {
unlink("docs", recursive = TRUE, force = TRUE)
message(" docs folder deleted successfully")
} else {
message(" No docs folder found")
}
# Build pkgdown site ----
message("Building pkgdown site...")
pkgdown::build_site_github_pages()
# Git commit ----
message("MANUAL STEP: Git commit all changed files (Commit, Push)")
readline(prompt = "Press [enter] to continue after committing")
# CRAN submission prep ----
message("\n=== FOR CRAN SUBMISSION ===")
message("1. Update cran-comments.md")
message("2. Make sure version number in DESCRIPTION is accurate")
message("3. Run: devtools::submit_cran()")
message("4. See https://r-pkgs.org/release.html for more info")
devtools::submit_cran()
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.