Skip to content

Commit

Permalink
Merge pull request #68 from jdeboer/dev
Browse files Browse the repository at this point in the history
CRAN feedback
  • Loading branch information
jdeboer authored Jul 1, 2018
2 parents bcf782c + 35b765f commit 95aa8b7
Show file tree
Hide file tree
Showing 15 changed files with 521 additions and 31 deletions.
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Package: ganalytics
Title: Interact with Google Analytics using R
Title: Interact with 'Google Analytics'
Version: 0.10.4
Date: 2018-06-23
Authors@R: person(
given = "Johann",
family = "de Boer",
role = c("aut", "cre"),
email = "[email protected]")
Description: Functions for querying the Google Analytics core reporting,
real-time, multi-channel funnel and management APIs, as well as the Google
Tag Manager API. Write methods are also provided for the management and
Google Tag Manager APIs so that you can change tag, property or view
Description: Functions for querying the 'Google Analytics' core reporting,
real-time, multi-channel funnel and management APIs, as well as the 'Google
Tag Manager' (GTM) API. Write methods are also provided for the management and
GTM APIs so that you can change tag, property or view
settings, for example. Define reporting queries using natural R expressions
instead of being concerned as much about API technical intricacies like
query syntax, character code escaping, and API limitations.
Expand Down
8 changes: 4 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
2018-06-23 Version type dimensions, e.g. ga:appVersion, are now coerced to `numeric_version` class, so that version numbers (e.g. ‘2.4.7’, ‘2.5.13’, ‘2.32.1’, etc...) can be correctly sorted and compared as if they were numeric values. Updated gademo.R. The dateRange class now inherits lubridate interval as its superclass. It is now possible to query more than 10 metrics with just one query.
2018-06-23 Version type dimensions, e.g. ga:appVersion, are now coerced to `numeric_version` class, so that version numbers (e.g. ‘2.4.7’, ‘2.5.13’, ‘2.32.1’, etc...) can be correctly sorted and compared as if they were numeric values. Updated gademo.R. The dateRange class now inherits 'lubridate' interval as its superclass. It is now possible to query more than 10 metrics with just one query.

2018-05-30 Additional methods to coerce ganalytics segment classes and table filters for use with the googleAnalyticsR package. Dynamic Segments objects now have a name property. Updated `googleAnalyticsR-demo` and examples in the readme file.
2018-05-30 Additional methods to coerce ganalytics segment classes and table filters for use with the 'googleAnalyticsR' package. Dynamic Segments objects now have a name property. Updated `googleAnalyticsR-demo` and examples in the readme file.

2018-02-18 Added methods for coercing a range of ganalytics classes into googleAnalyticsR classes, so that ganalytics segments, filters and expressions can be used by the google_analytics function of the googleAnalyticsR package.
2018-02-18 Added methods for coercing a range of ganalytics classes into 'googleAnalyticsR' classes, so that ganalytics segments, filters and expressions can be used by the google_analytics function of the 'googleAnalyticsR' package.

2018-02-12 Scope and negation of segment conditions can now be defined at the filter level. Fixed bug where backslashes were being escaped incorrectly in expression operands. The methods of the Segment generic function are now split into two generic functions, Segment and Segments. Segments is used to set or get a named list segments, whereas Segment is for defining a single segment to be added to a Segments list.

Expand Down Expand Up @@ -38,7 +38,7 @@ Added IsNegated generic function and method for testing whether a segment filter

2015-08-17 Update to latest dimension and metrics metadata and added support for custom dimensions and device category as view filter fields. Changed default metric for real-time queries to rt:pageviews.
2015-08-14 Added demos. Added support for new alphanumeric segment IDs. Foundations to support multiple segments within a single query.
2015-06-05 Support the use of a lubridate interval object as a dateRange object for GA Reporting API queries.
2015-06-05 Support the use of a 'lubridate' interval object as a dateRange object for GA Reporting API queries.

2015-05-04 Added support for real-time and multi-channel-funnels reporting APIs - both formulating queries and processing the query responses.

Expand Down
9 changes: 3 additions & 6 deletions R/Expr-generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ setGeneric(
#' Create a Core Reporting API expression.
#'
#' @examples
#' \dontrun{
#' \donttest{
#' myQuery <- GaQuery(view = 123456789)
#' source_matches_google <- GaExpr("source", "~", "google")
#' TableFilter(myQuery) <- source_matches_google
#' GetGaData(myQuery)
#' }
#' @inheritParams Expr
#'
Expand All @@ -47,11 +46,10 @@ setGeneric(
#' Create a Multi-Channel Funnel Reporting API expression.
#'
#' @examples
#' \dontrun{
#' \donttest{
#' myQuery <- McfQuery(view = 123456789)
#' source_matches_google <- McfExpr("mcf:source", "~", "google")
#' TableFilter(myQuery) <- source_matches_google
#' GetData(myQuery)
#' }
#'
#' @inheritParams Expr
Expand All @@ -71,11 +69,10 @@ setGeneric(
#' Create a Real-Time Reporting API expression.
#'
#' @examples
#' \dontrun{
#' \donttest{
#' myQuery <- RtQuery(view = 123456789)
#' source_matches_google <- RtExpr("rt:source", "~", "google")
#' TableFilter(myQuery) <- source_matches_google
#' GetData(myQuery)
#' }
#'
#' @inheritParams Expr
Expand Down
2 changes: 1 addition & 1 deletion R/ganalytics-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#'
#' Classes and methods for interactive use of the Google Analytics core
#' reporting, real-time reporting, multi-channel funnel reporting, metadata,
#' configuration management and Google Tag Manager APIs using R.
#' configuration management and Google Tag Manager APIs.
#'
#' To use this package with these APIs, it is necessary to provide OAuth
#' credentials for a Google APIs project with the necessary APIs enabled.
Expand Down
2 changes: 1 addition & 1 deletion R/sequence.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NULL

#' sequential_segment.
#'
#' Create a sequence using R non-standard evaluation syntax.
#' Create a sequence non-standard evaluation syntax.
#'
#' Steps must be separated by commas (\code{,}). \code{...} denotes zero or more
#' interactions may precede the step that follows, otherwise without \code{...} then
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This package provides functions for querying the Google Analytics core reporting

Updates
-------
Support for GoogleAnalyticsR integration is now available for segments and table filter objects. You can supply these objects to the `google_analytics` function in GoogleAnalyticsR by using `as()`, supplying the appropriate GoogleAnalyticsR class names, which are `"segment_ga4"` for segments and `".filter_clauses_ga4"` for table filters. Soon GoogleanalyticsR will implictly coerce ganalytics segments and table filters so that you do not need to explictly coerce using `as()`.
Support for GoogleAnalyticsR integration is now available for segments and table filter objects. You can supply these objects to the `google_analytics` function in GoogleAnalyticsR by using `as()`, supplying the appropriate 'GoogleAnalyticsR' class names, which are `"segment_ga4"` for segments and `".filter_clauses_ga4"` for table filters. Soon GoogleanalyticsR will implictly coerce ganalytics segments and table filters so that you do not need to explictly coerce using `as()`.

Many new functions have been provided for writing segmentation expressions:

Expand Down
7 changes: 7 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ This is a resubmission. In this version I have:
* Updated README.md with corrected URLs and a few other updates to the user instructions.

* Reduced LICENCE to keep only the first two lines of the file.

* Omitted the redundant "using R" in the package title.

* Placed single quotes around package and software names in Title and Description.

* Replaced \dontrun{} by \donttest{} in the Rd-files.

3 changes: 1 addition & 2 deletions man/GaExpr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/McfExpr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/RtExpr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ganalytics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/sequential_segment.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vignettes/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ <h4 class="date"><em>2018-06-07</em></h4>
<div id="ganalytics" class="section level1">
<h1>ganalytics</h1>
<p><a href="https://travis-ci.org/jdeboer/ganalytics"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAUCAYAAAAN+ioeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAABQBJREFUWIXdmH1ME2cAxp/76FF6DBhYIESgbHNJFRlMqIAIcWMjbhNs1pj0Dwgmi+jm4j70Dz/mHKvZnBl1cYBLE9YYCJNNggs6s/hFNGBjthCJHyPqFkFCVAKDtZSud+/+YDto7cdJmVSf5E3vvd/d0+d9cndpjzIYDJEcx5kVCoURQDTCQH++c36+I8yNXDQhg/wV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resE5VXC47H7XQOn1er+/pYaGhsDzPBwOB1iWRWxsLBhm6haZnJzE2NgYRFFEVFQUxsfHkZSUJJ3na1sQBIyOjsLtdkOlUsFut0tsprzf3p1++R7yrXGYGBLARlKIWsSCiaCmctwTYb8tABSgTKQxMSAgfjkHAHDeFTExKEB0ETBKCqqFDLg4Oigbtrkkj5nb3nPBSTB+ww3apUBF8UasTH4NW38r89kltXbt2rD7v+td9JmS+3jp1IJ5ShNYZ0ruQyQCbo1ex+6TmzCkvurzuMfiXUemKRrxyxXzlCawMk3RAAWwKgr8MwxYQvk8jiWE/AUg6tHGCyzvouN07AP7wkVxOtZj7isn7WIJS9N0syAI1Y8qmByFa6mzFXs3ppceGRl5j2GYbyiKGpvvQE+aaBdLIu4suEzuiUX/AG3EJVuesFjhAAAAAElFTkSuQmCC" alt="Travis-CI Build Status" /></a></p>
<p>Interact with <strong>Google Analytics</strong> using <strong>R</strong></p>
<p>Classes and methods for interactive use of the Google Analytics core reporting, real-time reporting, multi-channel funnel reporting, metadata, configuration management and Google Tag Manager APIs using R.</p>
<p>Classes and methods for interactive use of the Google Analytics core reporting, real-time reporting, multi-channel funnel reporting, metadata, configuration management and Google Tag Manager APIs.</p>
<p>The aim of this package is to support R users in defining reporting queries using natural R expressions instead of being concerned about API technical intricacies like query syntax, character code escaping and API limitations.</p>
<p>This package provides functions for querying the Google Analytics core reporting, real-time reporting, multi-channel funnel reporting and management APIs, as well as the Google Tag Manager API. Write methods are also provided for the Google Analytics Management and Google Tag Manager APIs so that you can, for example, change tag, property or view settings.</p>
<div id="updates" class="section level2">
Expand Down
Loading

0 comments on commit 95aa8b7

Please sign in to comment.