Skip to content

Commit

Permalink
update help files to reflect new behaviour
Browse files Browse the repository at this point in the history
i.e. help files for all screen_ functions, and the readme
  • Loading branch information
mjwestgate committed Nov 29, 2018
1 parent 3722f5f commit 7ec6b6c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ devtools::install_github("mjwestgate/revtools") # install from GitHub
library(revtools) # load
```

Once you've installed & loaded revtools, you can use any of the inbuilt apps by loading them and drag-and-dropping in the data you want to analyse. All the apps export to csv format so you don't need to use R to investigate their results if you'd prefer not to. The apps available in revtools are:
Once you've installed & loaded revtools, you can use any of the inbuilt apps by loading them and drag-and-dropping the data you want to analyse. All the apps export to csv format so you don't need to use R to investigate their results if you'd prefer not to. The apps available in revtools are:

- <code>screen_duplicates()</code> to look for duplicates within a dataset
- <code>screen_duplicates()</code> to investigate potential duplicates within a dataset
- <code>screen_titles()</code> to screen articles by title
- <code>screen_abstracts()</code> to screen articles by abstract
- <code>screen_topics()</code> to run topic models on bibliographic data

I've you're a keen to investigate your data a bit more deeply, revtools is designed to make data import as straightforward as possible. It does this by using a single function to import bibliographic data from bib, ris, ciw or csv formats:
If you're a keen to investigate your data in the R workspace, revtools is designed to make data import as straightforward as possible. It does this by using a single function to import bibliographic data from bib, ris, ciw or csv formats:

```
file_location <- system.file("extdata",
Expand All @@ -33,7 +33,10 @@ Then you can pass these data to your apps as you would with any other function:
```
screen_topics(data) # runs using your data
# to reload a previously saved version
# you can save progress to the workspace by specifying an object:
result <- screen_topics(data)
# or save to a file within the app, and reload that saved file:
y <- readRDS("saved_object.rds")
screen_topics(y)
```
3 changes: 3 additions & 0 deletions man/screen_abstracts.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ file_location <- system.file(
"avian_ecology_bibliography.ris",
package = "revtools")
x <- read_bibliography(file_location)
# to run the app using these data:
\dontrun{screen_abstracts(x)}
# or to run the app & save results to the workspace:
\dontrun{result <- screen_abstracts(x)}
}
3 changes: 3 additions & 0 deletions man/screen_duplicates.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ file_location <- system.file(
"avian_ecology_bibliography.ris",
package = "revtools")
x <- read_bibliography(file_location)
# to run the app using these data:
\dontrun{screen_duplicates(x)}
# or to run the app & save results to the workspace:
\dontrun{result <- screen_duplicates(x)}
}
7 changes: 5 additions & 2 deletions man/screen_titles.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ This function launches a Shiny app in the users' default browser, allowing the u
}
\examples{
# to run the app and upload data interactively
\dontrun{screen_abstracts()}
\dontrun{screen_titles()}
# or to specify data from the workspace
file_location <- system.file(
"extdata",
"avian_ecology_bibliography.ris",
package = "revtools")
x <- read_bibliography(file_location)
\dontrun{screen_abstracts(x)}
# to run the app using these data:
\dontrun{screen_titles(x)}
# or to run the app & save results to the workspace:
\dontrun{result <- screen_titles(x)}
}
3 changes: 3 additions & 0 deletions man/screen_topics.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ file_location <- system.file(
"avian_ecology_bibliography.ris",
package = "revtools")
x <- read_bibliography(file_location)
# to run the app using these data:
\dontrun{screen_topics(x)}
# or to run the app & save results to the workspace:
\dontrun{result <- screen_topics(x)}
}

0 comments on commit 7ec6b6c

Please sign in to comment.