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(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/Rtmp1Y1jwG/
#> Set your desired project path relative to your current path: 
#> 
#> You entered the path: /tmp/Rtmp1Y1jwG/
#> 
#> Setting your project root to: /tmp/Rtmp1Y1jwG/
#> Created file .here in /tmp/Rtmp1Y1jwG . Please start a new R session in the new project directory.
#>  Writing file: .Rprofile
#>  Writing file: mycv.Rproj
#> 
#>  Writing to: ../../../../../../../tmp/Rtmp1Y1jwG
#> 
#> ── 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/Rtmp1Y1jwG/R/applications/2024-07-data-science/2025-04-14-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                   58
#>  2 Data Analysis                   9
#>  3 UX                              1
#>  4 Cloud Computing                 4
#>  5 Computer Science                7
#>  6 Survey Data                     1
#>  7 Statistics                     18
#>  8 Algorithms                      2
#>  9 Unstructured Data               2
#> 10 Domain Knowledge                2
#> 11 Mathematics                     3
#> 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
#> 
#>  Opening: .
#> 
#> 3. Rendering application...
#> 
#> ── Building resume.txt ─────────────────────────────────────────────────────────
#>  Writing file: output/resume_yourname_AB.txt
#> 
#> ── Building resume.pdf ─────────────────────────────────────────────────────────
#>  Writing file: output/resume_yourname_AB.pdf
#>  All fields are up-to-date. Synchronizing metadata and log...
#> 
#> ! File already exists: metadata_AB.yml (overwriting) 
#> ! File already exists: ../log.rds (updating entry for 'AB') 
#> ! Package fontspec Error: 
#> (fontspec)                The font "Helvetica Neue" cannot be found; this
#> (fontspec)                may be but usually is not a fontspec bug. Either
#> (fontspec)                there is a typo in the font name/file, the font is
#> (fontspec)                not installed (correctly), or there is a bug in
#> (fontspec)                the underlying font loading engine
#> (fontspec)                (XeTeX/luaotfload).
#> Error: LaTeX failed to compile /tmp/Rtmp1Y1jwG//./R/applications/2024-07-data-science/2025-04-14-01-company-name-data-scientist-AB/output/resume_yourname_AB.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See resume_yourname_AB.log for more info.