This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
v0.3.6
rplos 0.3.6
NEW FEATURES
- All search functions (searchplos(), plosabstract(), plosauthor(), plosfigtabcaps(), plossubject(), and plostitle()) gain highlighting argument, setting to TRUE (default=FALSE) returns matching sentence fragments that were matched. NOTE that if highlighting=TRUE the output can be a list of data.frame's if returndf=TRUE, with two named elements 'data' and 'highlighting', or a list of lists if returndf=FALSE.
- All search functions (searchplos(), plosabstract(), plosauthor(), plosfigtabcaps(), plossubject(), and plostitle()) gain sort argument. You can pass a field to sort by even if you don't return that field in the output, e.g., sort='counter_total_month desc'.
- A tiny function parsehighlight() added to parse out html code from highlighting output.
BUG FIXES
- Some examples in docs didn't work - fixed them.
- Fixed bug in searchplos() that was causing elements of a return field to cause failure because they were longer than 1 (e.g., authors). Now concatenating elements of length > 1.
- Fixed bug in searchplos() that was causing elements of length 0 to cause failure. Now removing elements of length 0.
- Fixed parsehighlight function to return NA if highlighting return of length 0.
- Fixed broken test for plosauthor(), plosabstract(), and plot_throughtime().