diff --git a/buildPkg.R b/buildPkg.R
index c278d26b7bdbb015f5c1f90781733fe1f1434289..fc7d77c66261650b611c430fe5eb053f6b0b23a1 100644
--- a/buildPkg.R
+++ b/buildPkg.R
@@ -10,14 +10,19 @@ if(!grepl(x=getwd(), pattern="/legTools$")){
 
 ## Create/update NAMESPACE, *.Rd files.
 document()
+
+## Check documentation.
 check_doc()
 
+## Check functions, datasets, run examples, etc.
 check()
-## Updating legTools documentation
-## Loading legTools
-## Warning message:
-## In setup_ns_exports(pkg, export_all) :
-##   Objects listed as exports, but not present in namespace: wgpigs
+
+## Load the package.
+load_all()
+
+## Show all exported objects.
+ls("package:legTools")
+packageVersion("legTools")
 
 ## build()
 ## build_win()