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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: energyVIZ
> ### Title: Creates a plot/table of energySIM() results
> ### Aliases: energyVIZ
> 
> ### ** Examples
> 
> 
> # 1. Define Population and Run energySIM()
> 
> pop1 <- as.species(x=-98.7, y=34.7)
> 
> EX1=energySIM(replicates=10,days=7,env_rast=ex_raster, search_radius=200,
+ sigma=.1, dest_x=-108.6, dest_y=26.2, mot_x=.9, mot_y=.9,
+ modeled_species=pop1,
+ optimum_lo=.8,optimum_hi=.9,init_energy=100,
+ direction="R",write_results=FALSE,single_rast=TRUE,mortality = TRUE)
Direction=R specified--Raster will be ignored
Number of agents processed: 5
Number of agents processed: 10
> 
> # 2. Run energyVIZ() on your result
> 
> energyVIZ(EX1,title="Visualizing EnergySIM results",type="plot", aspect_ratio=5/3,
+ label=TRUE)
Warning: Use of `t.energy.res$lon` is discouraged.
ℹ Use `lon` instead.
Warning: Use of `t.energy.res$lat` is discouraged.
ℹ Use `lat` instead.
Warning: Use of `t.energy.res$agent_id` is discouraged.
ℹ Use `agent_id` instead.
Warning: Use of `ideal.df$Lon` is discouraged.
ℹ Use `Lon` instead.
Warning: Use of `ideal.df$Lat` is discouraged.
ℹ Use `Lat` instead.
> 
> energyVIZ(EX1,type="summary_table")
<div id="nfasshfwlf" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
  <style>html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#nfasshfwlf .gt_table {
  display: table;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#nfasshfwlf .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nfasshfwlf .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#nfasshfwlf .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#nfasshfwlf .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 0;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#nfasshfwlf .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nfasshfwlf .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#nfasshfwlf .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#nfasshfwlf .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#nfasshfwlf .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#nfasshfwlf .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#nfasshfwlf .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#nfasshfwlf .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#nfasshfwlf .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#nfasshfwlf .gt_from_md > :first-child {
  margin-top: 0;
}

#nfasshfwlf .gt_from_md > :last-child {
  margin-bottom: 0;
}

#nfasshfwlf .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#nfasshfwlf .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#nfasshfwlf .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#nfasshfwlf .gt_row_group_first td {
  border-top-width: 2px;
}

#nfasshfwlf .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#nfasshfwlf .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#nfasshfwlf .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#nfasshfwlf .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nfasshfwlf .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#nfasshfwlf .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#nfasshfwlf .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#nfasshfwlf .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#nfasshfwlf .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nfasshfwlf .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-left: 4px;
  padding-right: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#nfasshfwlf .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#nfasshfwlf .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#nfasshfwlf .gt_left {
  text-align: left;
}

#nfasshfwlf .gt_center {
  text-align: center;
}

#nfasshfwlf .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#nfasshfwlf .gt_font_normal {
  font-weight: normal;
}

#nfasshfwlf .gt_font_bold {
  font-weight: bold;
}

#nfasshfwlf .gt_font_italic {
  font-style: italic;
}

#nfasshfwlf .gt_super {
  font-size: 65%;
}

#nfasshfwlf .gt_footnote_marks {
  font-style: italic;
  font-weight: normal;
  font-size: 75%;
  vertical-align: 0.4em;
}

#nfasshfwlf .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#nfasshfwlf .gt_indent_1 {
  text-indent: 5px;
}

#nfasshfwlf .gt_indent_2 {
  text-indent: 10px;
}

#nfasshfwlf .gt_indent_3 {
  text-indent: 15px;
}

#nfasshfwlf .gt_indent_4 {
  text-indent: 20px;
}

#nfasshfwlf .gt_indent_5 {
  text-indent: 25px;
}
</style>
  <table class="gt_table">
  
  <thead class="gt_col_headings">
    <tr>
      <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="&lt;strong&gt;Characteristic&lt;/strong&gt;"><strong>Characteristic</strong></th>
      <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="&lt;strong&gt;N = 80&lt;/strong&gt;&lt;sup class=&quot;gt_footnote_marks&quot;&gt;1&lt;/sup&gt;"><strong>N = 80</strong><sup class="gt_footnote_marks">1</sup></th>
    </tr>
  </thead>
  <tbody class="gt_table_body">
    <tr><td headers="label" class="gt_row gt_left">lon</td>
<td headers="stat_0" class="gt_row gt_center">-98.4 (-100.8, -94.8)</td></tr>
    <tr><td headers="label" class="gt_row gt_left">lat</td>
<td headers="stat_0" class="gt_row gt_center">34.70 (32.90, 35.70)</td></tr>
    <tr><td headers="label" class="gt_row gt_left">curr_status</td>
<td headers="stat_0" class="gt_row gt_center"></td></tr>
    <tr><td headers="label" class="gt_row gt_left">    Alive</td>
<td headers="stat_0" class="gt_row gt_center">80 (100%)</td></tr>
    <tr><td headers="label" class="gt_row gt_left">energy</td>
<td headers="stat_0" class="gt_row gt_center"></td></tr>
    <tr><td headers="label" class="gt_row gt_left">    100</td>
<td headers="stat_0" class="gt_row gt_center">10 (100%)</td></tr>
    <tr><td headers="label" class="gt_row gt_left">    Unknown</td>
<td headers="stat_0" class="gt_row gt_center">70</td></tr>
    <tr><td headers="label" class="gt_row gt_left">delta_energy</td>
<td headers="stat_0" class="gt_row gt_center">NA (NA, NA)</td></tr>
    <tr><td headers="label" class="gt_row gt_left">    Unknown</td>
<td headers="stat_0" class="gt_row gt_center">80</td></tr>
    <tr><td headers="label" class="gt_row gt_left">distance</td>
<td headers="stat_0" class="gt_row gt_center">259 (204, 312)</td></tr>
    <tr><td headers="label" class="gt_row gt_left">    Unknown</td>
<td headers="stat_0" class="gt_row gt_center">10</td></tr>
  </tbody>
  
  <tfoot class="gt_footnotes">
    <tr>
      <td class="gt_footnote" colspan="2"><sup class="gt_footnote_marks">1</sup> Median (IQR); n (%)</td>
    </tr>
  </tfoot>
</table>
</div>
> 
> energyVIZ(EX1,type="strat_table")
Warning in table1.formula(~energy + day + distance | delta_energy, data = t.energy.res) :
  Terms to the right of '|' in formula 'x' define table columns and are expected to be factors with meaningful labels.
Error in table1.formula(~energy + day + distance | delta_energy, data = t.energy.res) : 
  Stratification variable(s) should not contain missing values.
Calls: energyVIZ -> table1 -> table1.formula
Execution halted