Skip to content

Commit

Permalink
version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnold authored and cran-robot committed Aug 7, 2014
1 parent 6ee9cbd commit ab98878
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 391 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Expand Up @@ -2,8 +2,8 @@ Package: pollstR
Title: R client for the Huffpost Pollster API
Description: An R interface to the Huffington Post Pollster API, which provides
programmatic interface to political polls.
Version: 1.0.1
Date: 2014-7-15
Version: 1.0.2
Date: 2014-8-7
Authors@R: c(person("Jeffrey B.", "Arnold", email = "jeffrey.arnold@gmail.com",
role = c("aut", "cre")),
person("Thomas J.", "Leeper", role = c("aut"),
Expand All @@ -17,10 +17,10 @@ VignetteBuilder: knitr
License: GPL-2
LazyLoad: yes
LazyData: true
Packaged: 2014-07-15 18:58:20 UTC; jrnold
Packaged: 2014-08-07 06:31:37 UTC; jrnold
Author: Jeffrey B. Arnold [aut, cre],
Thomas J. Leeper [aut]
Maintainer: Jeffrey B. Arnold <jeffrey.arnold@gmail.com>
NeedsCompilation: no
Repository: CRAN
Date/Publication: 2014-07-16 01:11:21
Date/Publication: 2014-08-07 09:09:38
22 changes: 10 additions & 12 deletions MD5
@@ -1,31 +1,29 @@
d724e54cae52d2b345315aa2cdf49600 *DESCRIPTION
4436aead99b0fc8336e57f0200f0ab92 *DESCRIPTION
4687139c0b9f9859d82e5330d52e0cdf *NAMESPACE
7580829f48b37eb33681ce4d8e3ea972 *NEWS
b450b739ea57ad24160f8e607b8c137c *NEWS
e76d0a794846ce56a1c0f09ac8f8207f *R/chart.R
c87e7e75183bcd5888fba226696ca63d *R/charts.R
9a28f562f385a8414e4e93ddd34f8fe8 *R/polls.R
91bd335db80a4b493a6308d175610821 *R/polls.R
e79a08b136137565e7eca6fd4452ad37 *R/pollstR-package.R
45ba0c59aee92f32e4a9ed2f95daf706 *build/vignette.rds
acb7f9191c6b62f6b19167288b6d75f2 *build/vignette.rds
d8943e822fc0b8c583b724e194f7be1c *inst/CITATION
588259661673aeb266869351eec20c48 *inst/doc/introduction.Rmd
03b1f95bf7329530bcd9355247425271 *inst/doc/introduction.html
6eb2780772befab6fe0dd9afd33acec8 *inst/doc/introduction.html
f3f501d20202935c36d51f868f982718 *inst/vign/children/api-overview.Rmd
fe1a7f779e4ca6009ba9529f2643a5db *inst/vign/children/example-obamas-approval.Rmd
9285bf6585647db9adea3c7e44135bc5 *inst/vign/children/install.Rmd
9b1e2743cfc498ba528be67e96793bd4 *inst/vign/children/intro.Rmd
879a81248680d02b54c89e46fbf4c943 *inst/vign/children/introduction.md
0c365c018d0cdf1181b850644058a583 *inst/vign/figures/obama-favorable-chart-2.png
637b4a7e9867d93724ca3a4b2e4e16c1 *inst/vign/figures/obama-favorable-chart.png
a040951971a7ddfef20598670691a334 *inst/vign/children/introduction.md
289039d2ba51b2dc592c05eb984a116f *inst/vign/figures/obama-favorable-chart.png
32128653990d13448056e2c6017fa2bf *inst/vign/introduction.Rmd
af2581d96b06b077db86955b0bee3eb5 *inst/vign/introduction.md
dd1fe7df581aed4dd28420b403519a4d *man/pollstR.Rd
ca93f607763ff58d36ab426784913df1 *man/pollstr_chart.Rd
d33970c1e931e91c2b985ce1f6e0a1b8 *man/pollstr_charts.Rd
53b0ad66fa9c605f5b15b70ab3a8cc81 *man/pollstr_polls.Rd
29b0f8aa2f27daa9c17f61e03e190f10 *tests/testthat.R
8693fd5b51c1f99fa1acf655d32058f6 *tests/testthat/test-chart.R
4300f52460314224f3df9b3c1b74b224 *tests/testthat/test-charts.R
faefe3ba44af8ad06f424f22f8f883d7 *tests/testthat/test-polls.R
39f729fcea1c8120c5ee01031ff6f474 *tests/testthat/test-chart.R
c1ff6914df47434f8e7895635999614e *tests/testthat/test-charts.R
fbe6784ff07513eb42c1b917990b92c8 *tests/testthat/test-polls.R
0c365c018d0cdf1181b850644058a583 *vignettes/assets/obama-favorable-chart-2.png
637b4a7e9867d93724ca3a4b2e4e16c1 *vignettes/assets/obama-favorable-chart.png
588259661673aeb266869351eec20c48 *vignettes/introduction.Rmd
15 changes: 11 additions & 4 deletions NEWS
@@ -1,12 +1,19 @@
# pollstR 1.0.1
pollstR News

CHANGES IN 1.0.2

* Bugfix: fix test failures due to API change.
* Remove tests brittle to API changes so fewer CRAN check failures

CHANGES IN 1.0.1

* Bugfix: did not convert some election date fields

# pollstR 1.0.0
CHANGES IN 1.0.0

* submit to CRAN

# pollstR 0.2.0
CHANGES IN 0.2.0

Merge with http://github.com/jrnold/pollster. This is a complete rewrite of the client.

Expand All @@ -15,6 +22,6 @@ Merge with http://github.com/jrnold/pollster. This is a complete rewrite of the
* ``getpolls`` replaced with ``pollstr_polls``. Returns class ``pollstr_polls``.
* ``xml`` API access no longer available.

# pollstR 0.1
CHANGES IN 0.1

* Initial package release
10 changes: 5 additions & 5 deletions R/polls.R
Expand Up @@ -38,22 +38,22 @@ pollstr_polls_url <- function(page, chart, state, topic, before, after, sort) {
polls2df <- function(.data) {
polls <- ldply(.data,
function(x) {
y <- convert_df(x[c("id", "pollster", "start_date", "end_date",
"method", "source", "last_updated")])
y <- convert_df(x[setdiff(names(x),
c("questions", "survey_houses", "sponsors"))])
y[["start_date"]] <- as.Date(y[["start_date"]])
y[["end_date"]] <- as.Date(y[["end_date"]])
y[["last_updated"]] <- as.POSIXct(y[["last_updated"]], "%Y-%m-%dT%H:%M:%SZ",
tz = "GMT")
if (length(y[["survey_houses"]])) {
if (length(x[["survey_houses"]])) {
y[["survey_houses"]] <-
paste(sapply(x[["survey_houses"]], `[[`, i = "name"),
sep = ";")
} else {
y[["survey_houses"]] <- ""
}
if (length(y[["sponsors"]])) {
if (length(x[["sponsors"]])) {
y[["sponsors"]] <-
paste(sapply(y[["sponsors"]], `[[`, i = "name"),
paste(sapply(x[["sponsors"]], `[[`, i = "name"),
sep = ";")
} else {
y[["sponsors"]] <- ""
Expand Down
Binary file modified build/vignette.rds
Binary file not shown.
3 changes: 0 additions & 3 deletions inst/doc/introduction.html
Expand Up @@ -45,9 +45,6 @@
hljs.initHighlightingOnLoad();
</script>

<!-- MathJax scripts -->
<script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>


<style type="text/css">
Expand Down
4 changes: 1 addition & 3 deletions inst/vign/children/introduction.md
@@ -1,12 +1,11 @@
<!--
%\VignetteEngine{knitr}
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{Introduction to pollstR}
-->





# R client for the Huffpost Pollster API

This R package is an interface to the Huffington Post [Pollster API](http://elections.huffingtonpost.com/pollster/api), which provides access to opinion polls collected by the Huffington Post.
Expand All @@ -17,4 +16,3 @@ The package is released under GPL-2 and the API data it accesses is released und




Binary file removed inst/vign/figures/obama-favorable-chart-2.png
Binary file not shown.
Binary file modified inst/vign/figures/obama-favorable-chart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ab98878

Please sign in to comment.