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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rcsplot
> ### Title: Plot restricted cubic splines curves
> ### Aliases: rcsplot
> 
> ### ** Examples
> 
> # View data
> head(cancer)
     id age    sex  race size metastasis   status time
1 10274  53   Male White   27         No Censored   12
2 56998  32   Male Black  185         No     Dead    5
3 60010  69   Male White   51         No     Dead   13
4 24307  61   Male White   37         No Censored   50
5  5253  53 Female White   25         No Censored   27
6 39685  56   Male Other   38         No Censored   17
> 
> # RCS curves for a linear regression model
> rcsplot(data = cancer,
+         outcome = "size",
+         exposure = "age",
+         covariates = c("sex", "race", "metastasis"))

Figure: Association Between age and size Using a Restricted Cubic Spline Regression Model.
Graphs show β for size according to age adjusted for sex, race, metastasis. Data were fitted by a linear regression model, and the model was conducted with 4 knots at the 5th, 35th, 65th, 95th percentiles of age (reference is the 5th percentile). Solid lines indicate β, and shadow shape indicate 95% CIs. CI, confidence interval.

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  conversion failure on 'β (95% CI)' in 'mbcsToSbcs': for β
Calls: <Anonymous> ... <Anonymous> -> widthDetails -> widthDetails.text -> grid.Call
Execution halted
Running examples in ‘plotRCS-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rcsplot
> ### Title: Plot restricted cubic splines curves
> ### Aliases: rcsplot
> 
> ### ** Examples
> 
> # View data
> head(cancer)
     id age    sex  race size metastasis   status time
1 10274  53   Male White   27         No Censored   12
2 56998  32   Male Black  185         No     Dead    5
3 60010  69   Male White   51         No     Dead   13
4 24307  61   Male White   37         No Censored   50
5  5253  53 Female White   25         No Censored   27
6 39685  56   Male Other   38         No Censored   17
> 
> # RCS curves for a linear regression model
> rcsplot(data = cancer,
+         outcome = "size",
+         exposure = "age",
+         covariates = c("sex", "race", "metastasis"))

Figure: Association Between age and size Using a Restricted Cubic Spline Regression Model.
Graphs show β for size according to age adjusted for sex, race, metastasis. Data were fitted by a linear regression model, and the model was conducted with 4 knots at the 5th, 35th, 65th, 95th percentiles of age (reference is the 5th percentile). Solid lines indicate β, and shadow shape indicate 95% CIs. CI, confidence interval.

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  conversion failure on 'β (95% CI)' in 'mbcsToSbcs': for β (U+03B2)
Calls: <Anonymous> ... <Anonymous> -> widthDetails -> widthDetails.text -> grid.Call
Execution halted
Running examples in ‘plotRCS-Ex.R’ failed
The error most likely occurred in:

> ### Name: rcsplot
> ### Title: Plot restricted cubic splines curves
> ### Aliases: rcsplot
> 
> ### ** Examples
> 
> # View data
> head(cancer)
     id age    sex  race size metastasis   status time
1 10274  53   Male White   27         No Censored   12
2 56998  32   Male Black  185         No     Dead    5
3 60010  69   Male White   51         No     Dead   13
4 24307  61   Male White   37         No Censored   50
5  5253  53 Female White   25         No Censored   27
6 39685  56   Male Other   38         No Censored   17
> 
> # RCS curves for a linear regression model
> rcsplot(data = cancer,
+         outcome = "size",
+         exposure = "age",
+         covariates = c("sex", "race", "metastasis"))

Figure: Association Between age and size Using a Restricted Cubic Spline Regression Model.
Graphs show β for size according to age adjusted for sex, race, metastasis. Data were fitted by a linear regression model, and the model was conducted with 4 knots at the 5th, 35th, 65th, 95th percentiles of age (reference is the 5th percentile). Solid lines indicate β, and shadow shape indicate 95% CIs. CI, confidence interval.

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  conversion failure on 'β (95% CI)' in 'mbcsToSbcs': for β (U+03B2)
Calls: <Anonymous> ... <Anonymous> -> widthDetails -> widthDetails.text -> grid.Call
Execution halted
Running examples in ‘plotRCS-Ex.R’ failed
The error most likely occurred in:

> ### Name: rcsplot
> ### Title: Plot restricted cubic splines curves
> ### Aliases: rcsplot
> 
> ### ** Examples
> 
> # View data
> head(cancer)
     id age    sex  race size metastasis   status time
1 10274  53   Male White   27         No Censored   12
2 56998  32   Male Black  185         No     Dead    5
3 60010  69   Male White   51         No     Dead   13
4 24307  61   Male White   37         No Censored   50
5  5253  53 Female White   25         No Censored   27
6 39685  56   Male Other   38         No Censored   17
> 
> # RCS curves for a linear regression model
> rcsplot(data = cancer,
+         outcome = "size",
+         exposure = "age",
+         covariates = c("sex", "race", "metastasis"))

Figure: Association Between age and size Using a Restricted Cubic Spline Regression Model.
Graphs show β for size according to age adjusted for sex, race, metastasis. Data were fitted by a linear regression model, and the model was conducted with 4 knots at the 5th, 35th, 65th, 95th percentiles of age (reference is the 5th percentile). Solid lines indicate β, and shadow shape indicate 95% CIs. CI, confidence interval.

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  conversion failure on 'β (95% CI)' in 'mbcsToSbcs': for β (U+03B2)
Calls: <Anonymous> ... <Anonymous> -> widthDetails -> widthDetails.text -> grid.Call
Execution halted
Running examples in 'plotRCS-Ex.R' failed
The error most likely occurred in:

> ### Name: rcsplot
> ### Title: Plot restricted cubic splines curves
> ### Aliases: rcsplot
> 
> ### ** Examples
> 
> # View data
> head(cancer)
     id age    sex  race size metastasis   status time
1 10274  53   Male White   27         No Censored   12
2 56998  32   Male Black  185         No     Dead    5
3 60010  69   Male White   51         No     Dead   13
4 24307  61   Male White   37         No Censored   50
5  5253  53 Female White   25         No Censored   27
6 39685  56   Male Other   38         No Censored   17
> 
> # RCS curves for a linear regression model
> rcsplot(data = cancer,
+         outcome = "size",
+         exposure = "age",
+         covariates = c("sex", "race", "metastasis"))

Figure: Association Between age and size Using a Restricted Cubic Spline Regression Model.
Graphs show β for size according to age adjusted for sex, race, metastasis. Data were fitted by a linear regression model, and the model was conducted with 4 knots at the 5th, 35th, 65th, 95th percentiles of age (reference is the 5th percentile). Solid lines indicate β, and shadow shape indicate 95% CIs. CI, confidence interval.

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  conversion failure on 'β (95% CI)' in 'mbcsToSbcs': for β (U+03B2)
Calls: <Anonymous> ... <Anonymous> -> widthDetails -> widthDetails.text -> grid.Call
Execution halted