diff --git a/.gitignore b/.gitignore index 49b3ece..f55fffc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ .Rhistory -*.Rproj .Rproj.user .DS_Store + +docs/*/*_cache + inst/examples/*/* !inst/examples/*/*.R !inst/examples/*/*.Rmd diff --git a/LDAvis.Rproj b/LDAvis.Rproj new file mode 100644 index 0000000..21a4da0 --- /dev/null +++ b/LDAvis.Rproj @@ -0,0 +1,17 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source diff --git a/Makefile b/Makefile index 303716d..8c35f14 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,9 @@ +all: site + +clean: + rm -r docs/*/vis + rm docs/*/*.html + rm docs/*/*.md + site: - cd docs && Rscript knit_examples.R && cd .. + cd docs && Rscript render.R && cd .. diff --git a/docs/AP/AP.html b/docs/AP/AP.html index 09ce14a..53de645 100644 --- a/docs/AP/AP.html +++ b/docs/AP/AP.html @@ -207,21 +207,11 @@
library("LDAvis")
data(AP, package = "LDAvisData")
+json <- with(AP, createJSON(phi, theta, doc.length, vocab, term.frequency))
+serVis(json, out.dir = 'vis', open.browser = FALSE)
-## Error in find.package(package, lib.loc, verbose = verbose): there is no package called 'LDAvisData'
-
-
-json <- with(AP, createJSON(phi, theta, doc.length, vocab, term.frequency))
-
-
-## Error in with(AP, createJSON(phi, theta, doc.length, vocab, term.frequency)): object 'AP' not found
-
-
-serVis(json, out.dir = 'vis', open.browser = FALSE)
-
-
-## Error in cat(json, file = file.path(out.dir, "lda.json")): object 'json' not found
+## Loading required namespace: servr