'LazyData' is specified without a 'data' directory
Running examples in 'ggconf-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running 'testthat.R' [5s/6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  == Failed tests ================================================================
  -- Error ('test-theme2.R:37'): theme2 ------------------------------------------
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      x
   1. \-ggconf::theme2(...) at test-theme2.R:37:4
   2.   \-ggconf:::exec_ggconf(...)
   3.     +-base::eval(parse(text = ggobj_verbose))
   4.     | \-base::eval(parse(text = ggobj_verbose))
   5.     \-ggplot2::theme(...)
   6.       \-ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         \-base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘ggconf-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running ‘testthat.R’ [3s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-theme2.R:37'): theme2 ──────────────────────────────────────────
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      ▆
   1. └─ggconf::theme2(...) at test-theme2.R:37:4
   2.   └─ggconf:::exec_ggconf(...)
   3.     ├─base::eval(parse(text = ggobj_verbose))
   4.     │ └─base::eval(parse(text = ggobj_verbose))
   5.     └─ggplot2::theme(...)
   6.       └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         └─base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘ggconf-Ex.R’ failed
The error most likely occurred in:

> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-theme2.R:37'): theme2 ──────────────────────────────────────────
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      ▆
   1. └─ggconf::theme2(...) at test-theme2.R:37:4
   2.   └─ggconf:::exec_ggconf(...)
   3.     ├─base::eval(parse(text = ggobj_verbose))
   4.     │ └─base::eval(parse(text = ggobj_verbose))
   5.     └─ggplot2::theme(...)
   6.       └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         └─base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘ggconf-Ex.R’ failed
The error most likely occurred in:

> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-theme2.R:37'): theme2 ──────────────────────────────────────────
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      ▆
   1. └─ggconf::theme2(...) at test-theme2.R:37:4
   2.   └─ggconf:::exec_ggconf(...)
   3.     ├─base::eval(parse(text = ggobj_verbose))
   4.     │ └─base::eval(parse(text = ggobj_verbose))
   5.     └─ggplot2::theme(...)
   6.       └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         └─base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in 'ggconf-Ex.R' failed
The error most likely occurred in:

> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-theme2.R:37'): theme2 ──────────────────────────────────────────
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      ▆
   1. └─ggconf::theme2(...) at test-theme2.R:37:4
   2.   └─ggconf:::exec_ggconf(...)
   3.     ├─base::eval(parse(text = ggobj_verbose))
   4.     │ └─base::eval(parse(text = ggobj_verbose))
   5.     └─ggplot2::theme(...)
   6.       └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         └─base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘ggconf-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-theme2.R:37'): theme2 ──────────────────────────────────────────
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      ▆
   1. └─ggconf::theme2(...) at test-theme2.R:37:4
   2.   └─ggconf:::exec_ggconf(...)
   3.     ├─base::eval(parse(text = ggobj_verbose))
   4.     │ └─base::eval(parse(text = ggobj_verbose))
   5.     └─ggplot2::theme(...)
   6.       └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         └─base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘ggconf-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-theme2.R:37'): theme2 ──────────────────────────────────────────
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      ▆
   1. └─ggconf::theme2(...) at test-theme2.R:37:4
   2.   └─ggconf:::exec_ggconf(...)
   3.     ├─base::eval(parse(text = ggobj_verbose))
   4.     │ └─base::eval(parse(text = ggobj_verbose))
   5.     └─ggplot2::theme(...)
   6.       └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         └─base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Running examples in 'ggconf-Ex.R' failed
The error most likely occurred in:

> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-theme2.R:37'): theme2 ──────────────────────────────────────────
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      ▆
   1. └─ggconf::theme2(...) at test-theme2.R:37:4
   2.   └─ggconf:::exec_ggconf(...)
   3.     ├─base::eval(parse(text = ggobj_verbose))
   4.     │ └─base::eval(parse(text = ggobj_verbose))
   5.     └─ggplot2::theme(...)
   6.       └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         └─base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Running examples in 'ggconf-Ex.R' failed
The error most likely occurred in:

> ### Name: theme2
> ### Title: an enhanced version of ggplot2::theme()
> ### Aliases: theme2
> 
> ### ** Examples
> 
> 
> if (requireNamespace("ggplot2", quietly = TRUE)) {
+ 
+ library(ggplot2)
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=as.factor(cyl))) +
+   theme2(
+     text(f="bold", z=24, fmly="Times New Roman"),
+     pnl.bg(fill="white"),
+     lgd.box.margin(.2, .2, .2, .2, "cm"),
+     lgd.box.bg(c="black"),
+     lgd.key(fill="white"),
+     lgd.position("bottom"),
+     lgd.txt(z=rel(.8)),
+     lgd.title(fmly="Consolas", c="royalblue"),  
+     axs.title(fmly="Consolas", c="royalblue"),  
+     axs.title.y(angle=0, vjust=.5),             
+     axs.txt(z=rel(1.1)),
+     axs.line(arrow=arrow(type="open", angle=20), z=2),
+     axs.tick(z=1),                              
+     axs.tick.len(.5, "cm"),
+     plt.subttl(f="plain", hjust=1),
+     plt.margin(.3, .3, .3, .1, "inch")          
+   )
+ 
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(a.txt(family = c("Consolas", "Times")[1]))
+ 
+ # all of the following three generate the same plot
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme(text = element_text(size=20, face="bold"),
+    axis.line = element_line(size=2),
+    legend.key = element_rect(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(text(size=20, face="bold"), axis.line(size=2),
+           legend.key(color="black"))
+ 
+ ggplot(mtcars) + geom_point(aes(wt, hp, color=cyl)) +
+    theme2(txt(sz=20, f="bold"), aline(sz=2), l.key(c="black"))
+ 
+ 
+ 
+ }
Error in ggplot2::element_line(fill = 1) : unused argument (fill = 1)
Calls: theme2 ... exec_ggconf -> eval -> eval -> <Anonymous> -> find_args -> mget
Execution halted
Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ggconf)
  > 
  > test_check("ggconf")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  
  == Failed tests ================================================================
  -- Error ('test-theme2.R:37'): theme2 ------------------------------------------
  Error in `ggplot2::element_line(fill = 1)`: unused argument (fill = 1)
  Backtrace:
      x
   1. \-ggconf::theme2(...) at test-theme2.R:37:4
   2.   \-ggconf:::exec_ggconf(...)
   3.     +-base::eval(parse(text = ggobj_verbose))
   4.     | \-base::eval(parse(text = ggobj_verbose))
   5.     \-ggplot2::theme(...)
   6.       \-ggplot2:::find_args(..., complete = NULL, validate = NULL)
   7.         \-base::mget(args, envir = env)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted