Skip to contents

Create the file tree and data files for the present application.

Usage

build_app_directory(app_df = construct_app_metadata(), open = TRUE)

Examples

# Complete end-to-end example (build -> (edit) -> render -> check) ----------
in_tmp_env({
  message("1. Building project directory...")
  build_base_directory()

  data(example_job_metadata)
  app_df <- construct_app_metadata(app_info = example_job_metadata)

  message("")
  message("2. Building application...")
  build_app_directory(app_df = app_df, open = FALSE)

  message("")
  message("3. Rendering application...")
  # render_app()
  # render_app(cover = FALSE, email = FALSE)

  message("")
  message("4. Checking keywords...")
  report_df <- check_skills()
  print(report_df)
})
#> 1. Building project directory...
#> 
#> ── Setting project paths ───────────────────────────────────────────────────────
#> 
#> Your current path is: /tmp/Rtmpbn6D2Y/
#> Set your desired project path relative to your current path: 
#> 
#> You entered the path: /tmp/Rtmpbn6D2Y/
#> 
#> Setting your project root to: /tmp/Rtmpbn6D2Y/
#> Created file .here in /tmp/Rtmpbn6D2Y . Please start a new R session in the new project directory.
#>  Writing file: .Rprofile
#>  Writing file: mycv.Rproj
#> 
#>  Writing to: ../../../../../../../tmp/Rtmpbn6D2Y
#> 
#> ── Creating directory tree ─────────────────────────────────────────────────────
#> ! Folder already exists: . (skipping) 
#>  Creating folder: R
#>  Creating folder: R/input
#>  Creating folder: R/output
#>  Creating folder: R/applications
#> 
#> ── Writing skeleton data files ─────────────────────────────────────────────────
#>  Writing file: R/input/resume_data.xlsx
#>  Writing file: R/input/cover_data.xlsx
#>  Writing file: R/input/job_metadata.yml
#> 
#> ── Writing resume-building notebooks ───────────────────────────────────────────
#>  Writing file: resume.Rmd
#>  Writing file: cv.Rmd
#> 
#> 2. Building application...
#> 
#>  Writing to: ../../../../../../../tmp/Rtmpbn6D2Y/R/applications/2024-07-data-science/2025-08-01-01-company-name-data-scientist-AB
#> 
#> ── Creating directory tree ─────────────────────────────────────────────────────
#>  Creating folder: input
#>  Creating folder: output
#> 
#> ── Copying base data files into directory ──────────────────────────────────────
#>  Writing file: input/resume_data_AB.xlsx
#>  Writing file: input/cover_data_AB.xlsx
#> 
#> ── Writing application metadata ────────────────────────────────────────────────
#>  Writing file: metadata_AB.yml
#>  Writing file: ../log.rds
#> 
#> ── Downloading job posting and building a skill report ─────────────────────────
#>  Writing file: input/posting_AB.txt
#> 
#> ── Keyword check: Posting vs job terms list ────────────────────────────────────
#>  Writing file: output/keyword_counts_AB.csv
#> # A tibble: 1 × 2
#>   term     matches
#>   <chr>      <dbl>
#> 1 Disabled       3
#> 
#> ── Keyword check: Posting vs data terms list ───────────────────────────────────
#>  Writing file: output/skill_counts_posting_AB.csv
#> # A tibble: 48 × 2
#>    term                      matches
#>    <chr>                       <dbl>
#>  1 Data Science                   59
#>  2 Data Analysis                   8
#>  3 UX                              1
#>  4 Cloud Computing                 4
#>  5 Computer Science                6
#>  6 Survey Data                     1
#>  7 Statistics                     19
#>  8 Algorithms                      2
#>  9 Unstructured Data               2
#> 10 Domain Knowledge                2
#> 11 Mathematics                     2
#> 12 Data-Driven                     2
#> 13 Statistical Knowledge           1
#> 14 Data Visualization              2
#> 15 C                               5
#> 16 Classification                  3
#> 17 Statistical Learning            3
#> 18 Data Mining                     3
#> 19 Data Collection                 1
#> 20 Exploratory Data Analysis       1
#> 21 Data Cleaning                   1
#> 22 Machine Learning                5
#> 23 Predictive Models               1
#> 24 Models                          1
#> 25 Statistical Analysis            1
#> 26 Data Preprocessing              1
#> 27 Supervised Learning             1
#> 28 Big Data                       10
#> 29 Data Analytics                  1
#> 30 Cloud Services                  1
#> 31 Analytical                      1
#> 32 Large Datasets                  1
#> 33 Python                          1
#> 34 R                               2
#> 35 Data Engineering                1
#> 36 Topological Data Analysis       2
#> 37 HTML                            4
#> 38 Statistical Modeling            1
#> 39 Causal Inference                1
#> 40 Collaboration                   1
#> 41 Signal Processing               1
#> 42 Spark                           1
#> 43 Spark SQL                       1
#> 44 Data Ethics                     1
#> 45 ETL                             1
#> 46 ELT                             1
#> 47 Developers                      1
#> 48 Insights                        1
#> 
#> 3. Rendering application...
#> 
#> 4. Checking keywords...
#> 
#> ── Keyword check: Posting vs job terms list ────────────────────────────────────
#> ! File already exists: output/keyword_counts_AB.csv (skipping) 
#>       term matches
#> 1 Disabled       3
#> 
#> ── Keyword check: Posting vs data terms list ───────────────────────────────────
#> ! File already exists: output/skill_counts_posting_AB.csv (skipping) 
#>                         term matches
#> 1               Data Science      59
#> 2              Data Analysis       8
#> 3                         UX       1
#> 4            Cloud Computing       4
#> 5           Computer Science       6
#> 6                Survey Data       1
#> 7                 Statistics      19
#> 8                 Algorithms       2
#> 9          Unstructured Data       2
#> 10          Domain Knowledge       2
#> 11               Mathematics       2
#> 12               Data-Driven       2
#> 13     Statistical Knowledge       1
#> 14        Data Visualization       2
#> 15                         C       5
#> 16            Classification       3
#> 17      Statistical Learning       3
#> 18               Data Mining       3
#> 19           Data Collection       1
#> 20 Exploratory Data Analysis       1
#> 21             Data Cleaning       1
#> 22          Machine Learning       5
#> 23         Predictive Models       1
#> 24                    Models       1
#> 25      Statistical Analysis       1
#> 26        Data Preprocessing       1
#> 27       Supervised Learning       1
#> 28                  Big Data      10
#> 29            Data Analytics       1
#> 30            Cloud Services       1
#> 31                Analytical       1
#> 32            Large Datasets       1
#> 33                    Python       1
#> 34                         R       2
#> 35          Data Engineering       1
#> 36 Topological Data Analysis       2
#> 37                      HTML       4
#> 38      Statistical Modeling       1
#> 39          Causal Inference       1
#> 40             Collaboration       1
#> 41         Signal Processing       1
#> 42                     Spark       1
#> 43                 Spark SQL       1
#> 44               Data Ethics       1
#> 45                       ETL       1
#> 46                       ELT       1
#> 47                Developers       1
#> 48                  Insights       1
#> 
#> ── Keyword check: Resume vs data terms list ────────────────────────────────────
#>  Writing file: output/skill_counts_resume_AB.csv
#>  File doesn't exist: output/resume_yourname_AB.txt (aborting) 
#> 
#> ── Keyword report: Resume vs posting keywords ──────────────────────────────────
#>  File doesn't exist: output/skill_counts_resume_AB.csv (aborting) 
#> [1] FALSE