Running examples in 'sjlabelled-Ex.R' failed
The error most likely occurred in:

> ### Name: get_term_labels
> ### Title: Retrieve labels of model terms from regression models
> ### Aliases: get_term_labels get_dv_labels
> 
> ### ** Examples
> 
> # use data set with labelled data
> data(efc)
> 
> fit <- lm(barthtot ~ c160age + c12hour + c161sex + c172code, data = efc)
> get_term_labels(fit)
                                   c160age 
                              "carer' age" 
                                   c12hour 
"average number of hours of care per week" 
                                   c161sex 
                          "carer's gender" 
                                  c172code 
              "carer's level of education" 
> 
> # make "education" categorical
> library(sjmisc)

Attaching package: 'sjmisc'

The following objects are masked from 'package:sjlabelled':

    add_labels, as_labelled, copy_labels, drop_labels, fill_labels,
    get_label, get_labels, get_na, get_note, get_values, is_labelled,
    lbl_df, read_sas, read_spss, read_stata, remove_all_labels,
    remove_labels, replace_labels, set_label, set_label<-, set_labels,
    set_note, set_note<-, unlabel, var_labels, write_sas, write_spss,
    write_stata, zap_labels, zap_na_tags, zap_unlabelled

> efc$c172code <- to_factor(efc$c172code)
> fit <- lm(barthtot ~ c160age + c12hour + c161sex + c172code, data = efc)
> get_term_labels(fit)
                                   c160age 
                              "carer' age" 
                                   c12hour 
"average number of hours of care per week" 
                                   c161sex 
                          "carer's gender" 
                                  c172code 
              "carer's level of education" 
                                 c172code1 
                  "low level of education" 
                                 c172code2 
         "intermediate level of education" 
                                 c172code3 
                 "high level of education" 
> 
> # get label of dv
> get_dv_labels(fit)
[1] "Total score BARTHEL INDEX"
> 
> # create "labelled" plot
> library(ggplot2)
Warning: S3 methods 'fullseq.Date', 'fullseq.POSIXt', 'fullseq.numeric', 'print.trans', 'rescale.NULL', 'rescale.Date', 'rescale.POSIXt', 'rescale.integer64', 'rescale.logical', 'rescale.numeric', 'rescale_mid.NULL', 'rescale_mid.Date', 'rescale_mid.POSIXt', 'rescale_mid.integer64', 'rescale_mid.logical', 'rescale_mid.numeric' were declared in NAMESPACE but not found
Error: package or namespace load failed for 'ggplot2' in namespaceExport(ns, exports):
 undefined exports: ContinuousRange, DiscreteRange, abs_area, alpha, area_pal, as.trans, asn_trans, atanh_trans, boxcox_trans, brewer_pal, cbreaks, censor, col2hcl, col_bin, col_factor, col_numeric, col_quantile, colour_ramp, comma, comma_format, cscale, date_breaks, date_format, date_trans, dichromat_pal, discard, div_gradient_pal, dollar, dollar_format, dscale, exp_trans, expand_range, extended_breaks, format_format, fullseq, gradient_n_pal, grey_pal, hms_trans, hue_pal, identity_pal, identity_trans, is.trans, linetype_pal, log10_trans, log1p_trans, log2_trans, log_breaks, log_trans, logit_trans, manual_pal, math_format, muted, ordinal, ordinal_format, parse_format, percent, percent_format, pretty_breaks, probability_trans, probit_trans, reciprocal_trans, regular_minor_breaks, rescale, rescale_max, rescale_mid, rescale_none, rescale_pal, reverse_trans, scientific, scientific_format, seq_gradient_p
Execution halted