Running examples in 'parSim-Ex.R' failed
The error most likely occurred in:

> ### Name: parSim
> ### Title: Parallel Simulator
> ### Aliases: parSim parSim-package
> 
> ### ** Examples
> 
> # Some function we might use:
> bias <- function(x,y){abs(x-y)}
> 
> # Run the simulation:
> Results <- parSim(
+   # Any number of conditions:
+   sampleSize = c(50, 100, 250),
+   beta = c(0, 0.5, 1),
+   sigma = c(0.25, 0.5, 1),
+   
+   # Number of repititions?
+   reps = 25, # more is better!
+   
+   # Parallel?
+   nCores = 1,
+   
+   # Write to file?
+   write = FALSE,
+   
+   # Export objects (only needed when nCores > 1):
+   export = c("bias"),
+   
+   # R expression:
+   expression = {
+     # Load all R packages in the expression if needed
+     # library(...)
+     
+     # Want to debug? Enter browser() and run the function. Only works with nCores = 1!
+     # browser()
+     
+     # Enter whatever codes you want. I can use the conditions as objects.
+     X <- rnorm(sampleSize)
+     Y <- beta * X + rnorm(sampleSize, sigma)
+     fit <- lm(Y ~ X)
+     betaEst <- coef(fit)[2]
+     Rsquared <- summary(fit)$r.squared
+     
+     # Make a data frame with one row to return results (multple rows is 
+     # also possible but not reccomended):
+     data.frame(
+       betaEst = betaEst,
+       bias = bias(beta,betaEst),
+       Rsquared = Rsquared
+     )
+   }
+ )
> 
> # Analyze the results:
> library("ggplot2")
> library("tidyr")
> 
> # We want to plot bias and R-squared. Let's first make it long format:
> Long <- gather(Results,metric,value,bias:Rsquared)
> 
> # Make factors with nice labels:
> Long$sigmaFac <- factor(Long$sigma,levels = c(0.25,0.5,1), 
+     labels = c("Sigma: 0.025", "Sigma: 0.5", "Sigma: 1"))
> 
> # Now let's plot:
> g <- ggplot(Long, aes(x = factor(sampleSize), y = value, fill = factor(beta)))  +
+   facet_grid(metric ~ sigmaFac, scales = "free") + 
+   geom_boxplot() + 
+   theme_bw() + 
+   xlab("Sample size") + 
+   ylab("") + 
+   scale_fill_discrete("Beta")
> print(g)
Error in namespaceExport(ns, exports) : 
  undefined exports: %s!=%, %s!==%, %s+%, %s<%, %s<=%, %s==%, %s===%, %s>%, %s>=%, %stri!=%, %stri!==%, %stri+%, %stri<%, %stri<=%, %stri==%, %stri===%, %stri>%, %stri>=%, stri_datetime_add<-, stri_sub<-, stri_subset<-, stri_subset_charclass<-, stri_subset_coll<-, stri_subset_fixed<-, stri_subset_regex<-, stri_c, stri_c_list, stri_cmp, stri_cmp_eq, stri_cmp_equiv, stri_cmp_ge, stri_cmp_gt, stri_cmp_le, stri_cmp_lt, stri_cmp_neq, stri_cmp_nequiv, stri_compare, stri_conv, stri_count, stri_count_boundaries, stri_count_charclass, stri_count_coll, stri_count_fixed, stri_count_regex, stri_count_words, stri_datetime_add, stri_datetime_create, stri_datetime_fields, stri_datetime_format, stri_datetime_fstr, stri_datetime_now, stri_datetime_parse, stri_datetime_symbols, stri_detect, stri_detect_charclass, stri_detect_coll, stri_detect_fixed, stri_detect_regex, stri_dup, stri_duplicated, stri_duplicated_any, stri_enc_detect, stri_enc_detect2, stri_enc_fromutf32, stri_enc_get, stri_enc_inf
Calls: print ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted