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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: photosynthesis
> ### Title: Simulate C3 photosynthesis
> ### Aliases: photosynthesis photo
> 
> ### ** Examples
> 
> # Single parameter set with 'photo'
> 
> bake_par <- make_bakepar()
> constants <- make_constants(use_tealeaves = FALSE)
> enviro_par <- make_enviropar(use_tealeaves = FALSE)
> leaf_par <- make_leafpar(use_tealeaves = FALSE)
> photo(leaf_par, enviro_par, bake_par, constants,
+       use_tealeaves = FALSE)

Solving for C_chl ... done
          C_chl        value convergence                     g_tc
1 24.52925 [Pa] -1.09648e-06           0 1.668765 [umol/Pa/m^2/s]
                      A            g_mc25              g_sc                g_uc
1 27.48581 [umol/m^2/s] 4 [umol/Pa/m^2/s] 4 [umol/Pa/m^2/s] 0.1 [umol/Pa/m^2/s]
  gamma_star25          J_max25       K_C25        K_O25  k_mc  k_sc  k_uc
1   3.743 [Pa] 200 [umol/m^2/s] 27.238 [Pa] 16.582 [kPa] 1 [1] 1 [1] 1 [1]
  leafsize     phi_J          R_d25     T_leaf   theta_J         V_cmax25
1  0.1 [m] 0.331 [1] 2 [umol/m^2/s] 298.15 [K] 0.825 [1] 150 [umol/m^2/s]
           V_tpu25 g_mc gamma_star J_max    K_C    K_O R_d V_cmax V_tpu   C_air
1 200 [umol/m^2/s]    4      3.743   200 27.238 16.582   2    150   200 41 [Pa]
               O              P              PPFD      RH    wind
1 21.27565 [kPa] 101.3246 [kPa] 1500 [umol/m^2/s] 0.5 [1] 2 [m/s]
> 
> # Multiple parameter sets with 'photosynthesis'
> 
> leaf_par <- make_leafpar(
+   replace = list(
+     T_leaf = set_units(c(293.14, 298.15), "K")
+     ), use_tealeaves = FALSE
+   )
> photosynthesis(leaf_par, enviro_par, bake_par, constants,
+                use_tealeaves = FALSE)
Solving for photosynthetic rate from 2 parameter sets ...New names:
* g_mc25 -> g_mc25...6
* g_sc -> g_sc...7
* g_uc -> g_uc...8
* gamma_star25 -> gamma_star25...9
* J_max25 -> J_max25...10
* ...
New names:
* g_mc25 -> g_mc25...6
* g_sc -> g_sc...7
* g_uc -> g_uc...8
* gamma_star25 -> gamma_star25...9
* J_max25 -> J_max25...10
* ...
Error in UseMethod("units<-") : 
  no applicable method for 'units<-' applied to an object of class "NULL"
Calls: photosynthesis ... withVisible -> <Anonymous> -> eval -> eval -> units<-
Execution halted