Skip to content

Commit

Permalink
#107 refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar-manukyan committed Dec 9, 2024
1 parent 2bfb2b3 commit c465b22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/generate_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ generate_one_topic_code <- function(topic, domain, spec) {
tolower()

map_topic <- paste0("\n\n# Map topic ", domain_topic, " ----\n")
assign_to_domain_topic <- paste0(domain_topic, " <-")

# Generate the code for each variable row in spec
spec_topic |>
Expand All @@ -139,7 +140,7 @@ generate_one_topic_code <- function(topic, domain, spec) {
.keep = "none"
) |>
unlist() |>
append(paste0(domain_topic, " <-"), after = 0L) |>
append(assign_to_domain_topic, after = 0L) |>
append(map_topic, after = 0L)
}

Expand Down

0 comments on commit c465b22

Please sign in to comment.