Running examples in ‘timetk-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: pad_by_time
> ### Title: Insert time series rows with regularly spaced timestamps
> ### Aliases: pad_by_time
> 
> ### ** Examples
> 
> library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.0     ✔ readr     2.1.4
✔ forcats   1.0.0     ✔ stringr   1.5.0
✔ ggplot2   3.4.1     ✔ tibble    3.2.0
✔ lubridate 1.9.2     ✔ tidyr     1.3.0
✔ purrr     1.0.1     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
> library(tidyquant)
Loading required package: PerformanceAnalytics
Loading required package: xts
Loading required package: zoo

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

    as.Date, as.Date.numeric


################################### WARNING ###################################
# We noticed you have dplyr installed. The dplyr lag() function breaks how    #
# base R's lag() function is supposed to work, which breaks lag(my_xts).      #
#                                                                             #
# Calls to lag(my_xts) that you enter or source() into this session won't     #
# work correctly.                                                             #
#                                                                             #
# All package code is unaffected because it is protected by the R namespace   #
# mechanism.                                                                  #
#                                                                             #
# Set `options(xts.warn_dplyr_breaks_lag = FALSE)` to suppress this warning.  #
#                                                                             #
# You can use stats::lag() to make sure you're not using dplyr::lag(), or you #
# can add conflictRules('dplyr', exclude = 'lag') to your .Rprofile to stop   #
# dplyr from breaking base R's lag() function.                                #
################################### WARNING ###################################

Attaching package: ‘xts’

The following objects are masked from ‘package:dplyr’:

    first, last


Attaching package: ‘PerformanceAnalytics’

The following object is masked from ‘package:graphics’:

    legend

Loading required package: quantmod
Loading required package: TTR
> library(timetk)
> 
> # Create a quarterly series with 1 missing value
> missing_data_tbl <- tibble(
+     date = tk_make_timeseries("2014-01-01", "2015-01-01", by = "quarter"),
+     value = 1:5
+ ) %>%
+     slice(-4) # Lose the 4th quarter on purpose
> missing_data_tbl
# A tibble: 4 × 2
  date       value
  <date>     <int>
1 2014-01-01     1
2 2014-04-01     2
3 2014-07-01     3
4 2015-01-01     5
> 
> 
> # Detects missing quarter, and pads the missing regularly spaced quarter with NA
> missing_data_tbl %>% pad_by_time(date, .by = "quarter")
# A tibble: 5 × 2
  date       value
  <date>     <int>
1 2014-01-01     1
2 2014-04-01     2
3 2014-07-01     3
4 2014-10-01    NA
5 2015-01-01     5
> 
> # Can specify a shorter period. This fills monthly.
> missing_data_tbl %>% pad_by_time(date, .by = "month")
# A tibble: 13 × 2
   date       value
   <date>     <int>
 1 2014-01-01     1
 2 2014-02-01    NA
 3 2014-03-01    NA
 4 2014-04-01     2
 5 2014-05-01    NA
 6 2014-06-01    NA
 7 2014-07-01     3
 8 2014-08-01    NA
 9 2014-09-01    NA
10 2014-10-01    NA
11 2014-11-01    NA
12 2014-12-01    NA
13 2015-01-01     5
> 
> # Can let pad_by_time() auto-detect date and period
> missing_data_tbl %>% pad_by_time()
.date_var is missing. Using: date
pad applied on the interval: quarter
# A tibble: 5 × 2
  date       value
  <date>     <int>
1 2014-01-01     1
2 2014-04-01     2
3 2014-07-01     3
4 2014-10-01    NA
5 2015-01-01     5
> 
> # Can specify a .pad_value
> missing_data_tbl %>% pad_by_time(date, .by = "quarter", .pad_value = 0)
Error in vectbl_assign(x[[j]], i, recycled_value[[j]]) : 
  DLL requires the use of native symbols
Calls: %>% ... tbl_subassign_row -> withCallingHandlers -> vectbl_assign
Execution halted