Skip to content

Commit

Permalink
Merge branch 'release/3.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
psychelzh committed Dec 6, 2023
2 parents 6269251 + 972056b commit 26577d9
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 411 deletions.
9 changes: 3 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tarflow.iquizoo
Title: Setup "targets" Workflows for "iquizoo" Data Processing
Version: 3.8.2
Version: 3.9.0
Authors@R: c(
person("Liang", "Zhang", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-9041-1150")),
Expand All @@ -22,23 +22,20 @@ Imports:
data.iquizoo (>= 2023.10.22),
DBI,
dplyr,
jsonlite,
memoise,
purrr,
rlang (>= 1.0.0),
stringr,
tarchetypes,
targets,
tidyr,
utils,
vctrs
tidyr
Suggests:
bit64,
covr,
digest,
lifecycle,
odbc,
preproc.iquizoo (>= 2.4.0),
preproc.iquizoo (>= 2.6.0),
RMariaDB (>= 1.3.1),
roxygen2,
testthat (>= 3.0.0),
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
export(check_source)
export(fetch_data)
export(fetch_iquizoo)
export(preproc_data)
export(setup_option_file)
export(setup_source)
export(setup_templates)
export(tar_prep_iquizoo)
export(use_targets_pipeline)
export(wrangle_data)
import(dplyr)
import(rlang)
import(tidyr)
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# tarflow.iquizoo 3.9.0

## Breaking Changes

* Ensure all internal SQL query templates end with semicolon. This will unavoidably invalidate existing targets for old pipelines.
* Removed `preproc_data()` and `wrangle_data()` functions. Now all data preprocessing are done in `preproc.iquizoo` package.

# tarflow.iquizoo 3.8.2

## Enhancements
Expand Down
115 changes: 0 additions & 115 deletions R/preproc.R

This file was deleted.

5 changes: 3 additions & 2 deletions R/targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ tar_action_raw_data <- function(contents,
targets::tar_target_raw(
name_parsed,
expr(wrangle_data(tar_data)),
packages = "tarflow.iquizoo"
packages = "preproc.iquizoo"
)
)
},
Expand All @@ -251,7 +251,7 @@ tar_action_raw_data <- function(contents,
.input = input, .extra = extra
)
),
packages = c("tarflow.iquizoo", "preproc.iquizoo")
packages = "preproc.iquizoo"
)
)
}
Expand All @@ -266,6 +266,7 @@ utils::globalVariables(
c(
"progress_hash", "project_id", "game_id",
"tar_data", "tar_parsed",
"wrangle_data", "preproc_data",
"prep_fun", "input", "extra"
)
)
7 changes: 0 additions & 7 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ reference:
contents:
- use_targets_pipeline
- tar_prep_iquizoo
- title: "Functions Used for Actions on Raw-data"
desc: >
Data parsing and pre-processing. Typically used in combination with
[preproc.iquizoo](https://psychelzh.github.io/preproc.iquizoo/) package.
contents:
- wrangle_data
- preproc_data
- title: "Low-level Database operations"
desc: Functions to help you interact with database.
contents:
Expand Down
2 changes: 1 addition & 1 deletion inst/sql/contents.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ FROM
INNER JOIN iquizoo_content_db.course_child_config ccc ON ccc.ChildCourseId = cc.Id AND ccc.Deleted <> 1
INNER JOIN iquizoo_content_db.content c2 ON c2.Id = ccc.ContentId AND c2.ContentType <> 4 AND c2.Deleted <> 1
INNER JOIN iquizoo_user_db.base_organization bo ON bo.Id = pcc.OrganizationId AND bo.Deleted <> 1
WHERE bo.Name = ? AND pcc.Name = IFNULL(?, pcc.Name)
WHERE bo.Name = ? AND pcc.Name = IFNULL(?, pcc.Name);
2 changes: 1 addition & 1 deletion inst/sql/raw_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SELECT
FROM
iquizoo_business_db.{ table_name }
WHERE
ProjectCourseConfigId = ? AND ContentId = ?
ProjectCourseConfigId = ? AND ContentId = ?;
2 changes: 1 addition & 1 deletion inst/sql/scores.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ SELECT
FROM
iquizoo_business_db.{ table_name }
WHERE
ProjectCourseConfigId = ? AND ContentId = ?
ProjectCourseConfigId = ? AND ContentId = ?;
46 changes: 0 additions & 46 deletions man/preproc_data.Rd

This file was deleted.

22 changes: 0 additions & 22 deletions man/wrangle_data.Rd

This file was deleted.

Loading

0 comments on commit 26577d9

Please sign in to comment.