Skip to content

Commit 85c22d5

Browse files
fix of build failing dpcy
1 parent 3c8d727 commit 85c22d5

28 files changed

+47
-123
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@
4040
^data-raw/dataverse/abbreviations_lup/abbreviations_lup\.RDS$
4141
^data-raw/dataverse/fn_type_lup_tb/fn_type_lup_tb\.csv$
4242
^data-raw/dataverse/fn_type_lup_tb/fn_type_lup_tb\.RDS$
43+
^data-raw/dataverse/prototype_lup/prototype_lup\.csv$
44+
^data-raw/dataverse/prototype_lup/prototype_lup\.RDS$

NAMESPACE

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export("%>%")
4-
export("crs_nbr_dbl<-")
5-
export("merge_with_chr_vec<-")
6-
export("save_type<-")
74
export(add_ds_to_dv_repo)
85
export(add_dv_meta_to_imp_lup)
96
export(add_files_to_dv)
@@ -14,7 +11,6 @@ export(assert_matches_chr)
1411
export(assert_single_row_tb)
1512
export(bind_lups)
1613
export(bind_lups.ready4_dictionary)
17-
export(crs_nbr_dbl)
1814
export(download_data)
1915
export(get_data)
2016
export(get_data.ready4_dv_import_lup)
@@ -48,7 +44,6 @@ export(make_pt_ready4_dist)
4844
export(make_pt_ready4_dv_import_lup)
4945
export(make_pt_ready4_par_struc_mape)
5046
export(make_r3_from_csv_tb)
51-
export(merge_with_chr_vec)
5247
export(read_import_from_csv)
5348
export(ready4_all_import_lup)
5449
export(ready4_dictionary)
@@ -57,7 +52,6 @@ export(ready4_dv_import_lup)
5752
export(ready4_par_struc_mape)
5853
export(remove_labels_from_ds)
5954
export(save_raw)
60-
export(save_type)
6155
export(transform_csv_col_to_ls_col)
6256
export(update_src_loc_to_url)
6357
export(update_src_loc_to_url.ready4_all_import_lup)
@@ -118,9 +112,9 @@ importFrom(ready4class,update_pt_fn_args_ls)
118112
importFrom(ready4fun,add_lups)
119113
importFrom(ready4fun,get_dev_pkg_nm)
120114
importFrom(ready4fun,get_from_lup_obj)
115+
importFrom(ready4fun,remove_lbls_from_df)
121116
importFrom(ready4fun,write_and_doc_ds)
122117
importFrom(rlang,exec)
123-
importFrom(sjlabelled,unlabel)
124118
importFrom(stats,setNames)
125119
importFrom(stringi,stri_locate_last_regex)
126120
importFrom(stringr,str_c)

R/db_prototype_lup.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#'
77
#' \describe{
88
#' \item{type_chr}{Type (a character vector)}
9-
#' \item{val_chr}{Val (a character vector)}
9+
#' \item{val_chr}{Value (a character vector)}
1010
#' \item{pt_ns_chr}{Prototype namespace (a character vector)}
1111
#' \item{fn_to_call_chr}{Function to call (a character vector)}
12-
#' \item{default_val_chr}{Default val (a character vector)}
12+
#' \item{default_val_chr}{Default value (a character vector)}
1313
#' \item{old_class_lgl}{Old class (a logical vector)}
1414
#' }
1515
"prototype_lup"

R/fn_add.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,18 @@ add_files_to_dv <- function (files_tb, data_dir_rt_1L_chr = ".", ds_url_1L_chr,
143143
#' @return Labelled dataset (a tibble)
144144
#' @rdname add_labels_from_dictionary
145145
#' @export
146-
#' @importFrom sjlabelled unlabel
146+
#' @importFrom ready4fun remove_lbls_from_df
147147
#' @importFrom dplyr filter mutate case_when
148148
#' @importFrom purrr reduce
149149
#' @importFrom Hmisc label
150150
#' @keywords internal
151151
add_labels_from_dictionary <- function (ds_tb, dictionary_tb, remove_old_lbls_1L_lgl = F)
152152
{
153153
if (remove_old_lbls_1L_lgl)
154-
ds_tb <- ds_tb %>% sjlabelled::unlabel()
154+
ds_tb <- ds_tb %>% ready4fun::remove_lbls_from_df()
155155
data_dictionary_tb <- dictionary_tb %>% dplyr::filter(var_nm_chr %in%
156156
names(ds_tb)) %>% dplyr::mutate(var_desc_chr = dplyr::case_when(is.na(var_desc_chr) ~
157-
var_nm_chr, TRUE ~ var_desc_chr)) %>% sjlabelled::unlabel()
157+
var_nm_chr, TRUE ~ var_desc_chr)) %>% ready4fun::remove_lbls_from_df()
158158
if (nrow(data_dictionary_tb) > 0) {
159159
labelled_ds_tb <- seq_len(nrow(data_dictionary_tb)) %>%
160160
purrr::reduce(.init = ds_tb, ~{

R/gnrc_crs_nbr_dbl.R renamed to R/gs_crs_nbr_dbl.R

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
#' crs_nbr_dbl
2-
#' @description S4 Generic function to get the value of the slot crs_nbr_dbl
3-
#' @rdname crs_nbr_dbl-methods
4-
#' @param x An object
5-
#'
6-
#' @export
7-
8-
methods::setGeneric("crs_nbr_dbl", function(x) standardGeneric("crs_nbr_dbl"))
9-
#' crs_nbr_dbl
102
#' @name crs_nbr_dbl-ready4_script_data
113
#' @description Get the value of the slot crs_nbr_dbl for S4 objects of class ready4_script_data
124
#' @param x An object of class ready4_script_data
@@ -17,15 +9,6 @@ methods::setMethod("crs_nbr_dbl", methods::className("ready4_script_data"), func
179
x@crs_nbr_dbl
1810
})
1911
#' crs_nbr_dbl<-
20-
#' @description S4 Generic function to set the value of the slot crs_nbr_dbl
21-
#' @rdname crs_nbr_dbl_set-methods
22-
#' @param x An object
23-
#' @param value Value to be assigned to x
24-
#'
25-
#' @export
26-
27-
methods::setGeneric("crs_nbr_dbl<-", function(x, value) standardGeneric("crs_nbr_dbl<-"))
28-
#' crs_nbr_dbl<-
2912
#' @name crs_nbr_dbl<--ready4_script_data
3013
#' @description Set the value of the slot crs_nbr_dbl for S4 objects of class ready4_script_data
3114
#' @param x An object of class ready4_script_data

R/gnrc_merge_with_chr_vec.R renamed to R/gs_merge_with_chr_vec.R

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
#' merge_with_chr_vec
2-
#' @description S4 Generic function to get the value of the slot merge_with_chr_vec
3-
#' @rdname merge_with_chr_vec-methods
4-
#' @param x An object
5-
#'
6-
#' @export
7-
8-
methods::setGeneric("merge_with_chr_vec", function(x) standardGeneric("merge_with_chr_vec"))
9-
#' merge_with_chr_vec
102
#' @name merge_with_chr_vec-ready4_local
113
#' @description Get the value of the slot merge_with_chr_vec for S4 objects of class ready4_local
124
#' @param x An object of class ready4_local
@@ -17,15 +9,6 @@ methods::setMethod("merge_with_chr_vec", methods::className("ready4_local"), fun
179
x@merge_with_chr_vec
1810
})
1911
#' merge_with_chr_vec<-
20-
#' @description S4 Generic function to set the value of the slot merge_with_chr_vec
21-
#' @rdname merge_with_chr_vec_set-methods
22-
#' @param x An object
23-
#' @param value Value to be assigned to x
24-
#'
25-
#' @export
26-
27-
methods::setGeneric("merge_with_chr_vec<-", function(x, value) standardGeneric("merge_with_chr_vec<-"))
28-
#' merge_with_chr_vec<-
2912
#' @name merge_with_chr_vec<--ready4_local
3013
#' @description Set the value of the slot merge_with_chr_vec for S4 objects of class ready4_local
3114
#' @param x An object of class ready4_local

R/gnrc_save_type.R renamed to R/gs_save_type.R

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
#' save_type
2-
#' @description S4 Generic function to get the value of the slot save_type
3-
#' @rdname save_type-methods
4-
#' @param x An object
5-
#'
6-
#' @export
7-
8-
methods::setGeneric("save_type", function(x) standardGeneric("save_type"))
9-
#' save_type
102
#' @name save_type-ready4_local_raw
113
#' @description Get the value of the slot save_type for S4 objects of class ready4_local_raw
124
#' @param x An object of class ready4_local_raw
@@ -17,15 +9,6 @@ methods::setMethod("save_type", methods::className("ready4_local_raw"), function
179
x@save_type
1810
})
1911
#' save_type<-
20-
#' @description S4 Generic function to set the value of the slot save_type
21-
#' @rdname save_type_set-methods
22-
#' @param x An object
23-
#' @param value Value to be assigned to x
24-
#'
25-
#' @export
26-
27-
methods::setGeneric("save_type<-", function(x, value) standardGeneric("save_type<-"))
28-
#' save_type<-
2912
#' @name save_type<--ready4_local_raw
3013
#' @description Set the value of the slot save_type for S4 objects of class ready4_local_raw
3114
#' @param x An object of class ready4_local_raw

_pkgdown.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
home:
2-
links:
3-
- text: User manual (PDF)
4-
href: https://github.com/ready4-dev/ready4use/releases/download/v0.0.0.9117/ready4use_user_0.0.0.9117.pdf
5-
- text: Developer version of usual manual (PDF)
6-
href: https://github.com/ready4-dev/ready4use/releases/download/v0.0.0.9117/ready4use_developer_0.0.0.9117.pdf
71
development:
82
mode: auto
93
reference:

data-raw/DATASET.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ ready4fun::write_and_doc_fn_fls(fns_dmt_tb,
122122
## PAUSE FOR INTERACTIV
123123
data("prototype_lup")
124124
prototype_lup %>%
125-
write_paired_ds_fls_to_dv(fl_nm_1L_chr = "abbreviations_lup",
126-
desc_1L_chr = "Abbreviations lookup table")
125+
write_paired_ds_fls_to_dv(fl_nm_1L_chr = "prototype_lup",
126+
desc_1L_chr = "Prototypes lookup table")
127127
##
128128
ready4fun::write_links_for_website(user_manual_url_1L_chr = "https://github.com/ready4-dev/ready4use/releases/download/v0.0.0.9117/ready4use_user_0.0.0.9117.pdf",
129129
developer_manual_url_1L_chr = "https://github.com/ready4-dev/ready4use/releases/download/v0.0.0.9117/ready4use_developer_0.0.0.9117.pdf")

data-raw/MAKE_HOUSESTYLE_DSS.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
library(magrittr)
12
ready4fun::read_fns("data-raw/fns")
23
source("data-raw/MAKE_CLASSES.R")
34
abbreviations_lup <- ready4fun::get_rds_from_dv("abbreviations_lup")

0 commit comments

Comments
 (0)