stephen-mcdaniel / r-google-analytics Goto Github PK
View Code? Open in Web Editor NEWThis repository is an export of the final version from the retired Google Code system (code.google.com/p/r-google-analytics).
This repository is an export of the final version from the retired Google Code system (code.google.com/p/r-google-analytics).
I'm interested in changing this package. But I don't know how to set up a
development infrastructure in R.
I've checked out the sources. How do I import the changed package into my
R-environment?
Can someone point me to the right direction, please?
TIA,
Jerry
Original issue reported on code.google.com by [email protected]
on 12 Aug 2012 at 4:21
What steps will reproduce the problem?
1. Download latest 'RGoogleAnalytics' from download section
2. Attempt to install libraries from downloaded file using "source" function.
What is the expected output? What do you see instead?
I expect the libraries to load. They don't load.
What version of the product are you using? On what operating system?
R 3.0.1 on Windows 7
Please provide any additional information below.
I just want to install the library
Original issue reported on code.google.com by [email protected]
on 19 Jun 2013 at 10:36
RGoogleAnalytics has stopped working due to changes in GA API. Whenever you
execute a query it raises the error:
Error in GetDataFeed(query.builder$to.uri()) : 401 Unauthorized
authError Invalid Credentials
Apparently, now you juste append an API key to the query in the new GA API.
Original issue reported on code.google.com by [email protected]
on 3 Aug 2012 at 10:37
What steps will reproduce the problem?
1. Following the Example-Code for Version 1.4
2. Making every step work until ga.segments
3. ga.segments <- conf$GetSegments()
What is the expected output? What do you see instead?
Error en fromJSON(api.response.json, method = "C") :
unexpected escaped character '\.' at pos 21
What version of the product are you using? On what operating system?
Version 1.4 and Windows 7 on R 3.0.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2013 at 7:30
I'm guessing this is an old project... is there a new one that has replaced it?
When I try installing RCurl I see:
> install.packages("RCurl", repos = "http://www.omegahat.org/R")
Warning: dependency ‘bitops’ is not available
Warning: unable to access index for repository
http://www.omegahat.org/R/bin/macosx/leopard/contrib/2.15
package ‘RCurl’ is available as a source package but not as a binary
Warning message:
package ‘RCurl’ is not available (for R version 2.15.2)
Original issue reported on code.google.com by [email protected]
on 12 Jan 2013 at 1:53
What steps will reproduce the problem?
1. Create OAut session
2. Define query$Init() parameters
3. Run ga$GetReportsData(query)
What is the expected output? What do you see instead?
I have successfully run the code numerous times on parameters that contain user
comments, sometimes receiving Chinese characters which is fine. When changing
the date parameters I sometimes get the exception error:
'Error in sort.list(y) : invalid input 'some non-Latin characters here' in
'utf8towcs'
What version of the product are you using? On what operating system?
RGoogleAnalytics V 0.1.1
Windows 7 Enterprise SP 1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Sep 2014 at 2:21
What steps will reproduce the problem?
When I run this code in R:
library(XML)
library(RCurl)
library(bitops)# 1. Create a new Google Analytics API object
ga <- RGoogleAnalytics()
#2. Authorize the object with your Google Analytics Account Credentials
ga$SetCredentials("username", "password")
What is the expected output? What do you see instead?
Rather than established connection, I get this ERROR message:
Error in postForm("https://www.google.com/accounts/ClientLogin", Email =
username, :
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed
What version of the product are you using? On what operating system?
Rx64 2.12.0 on Windows 64 bit
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 8 Dec 2010 at 3:32
What steps will reproduce the problem?
1. Install R (v2.15.x)
2. Attempt to install package
What is the expected output? What do you see instead?
Expected output: [standard post install]
Actual:
Warning in install.packages("RCurl", repos = "http://www.omegahat.org/R") :
'lib = "C:/Program Files/R/R-2.15.1/library"' is not writable
Warning message:
package ‘RCurl’ is not available (for R version 2.15.1)
What version of the product are you using? On what operating system?
Original issue reported on code.google.com by [email protected]
on 25 Oct 2012 at 6:27
What steps will reproduce the problem?
1. conf<-Configuration()
2. conf$GetGoals()
3.
What is the expected output? What do you see instead?
Error in do.call(rbind, df.param$id) : second argument must be a list
What version of the product are you using? On what operating system?
1.4 on Win 7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 13 Apr 2014 at 7:36
What steps will reproduce the problem?
1. library("RCurl")
2. library("XML")
3. source("QueryBuilder.R")
4. source("RGoogleAnalytics.R")
5. ga=RGoogleAnalytics()
6. Get SSL certificate:
6.1: download.file(url="http://curl.haxx.se/ca/cacert.pem",
destfile="cacert.pem")
6.2: curl <- getCurlHandle()
> options(RCurlOptions = list(capath = system.file("CurlSSL", "cacert.pem",
package = "RCurl"), ssl.verifypeer = FALSE))
> curlSetOpt(.opts = list(proxy = "proxyserver:port"), curl = curl)
7. ga <- RGoogleAnalytics()
8.ga$SetCredentials("user_name", "password")
9.profiles <- ga$GetProfileData()
What is the expected output? What do you see instead?
Expect: Get an object "profiles" with a list of profile
What I see instead:
Error in ga$GetProfileData() : 404 Not Found
What version of the product are you using? On what operating system?
x86_64-pc-mingw32/x64 (64-bit)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Oct 2012 at 6:54
This isn't a bug, but I'm stumped on real contact info for any of the
maintainers.
I tweaked QueryBuilder() so that it's a little friendlier in accepting user
input -- if you accidentally include a space after the comma in specifying
dimensions, for example, I don't think you should get a 400 Bad Request back -
instead, should just strip spaces from the URL - there's no good reason for
them to be there.
Anyways, I made this change, and since I couldn't find any better way than this
to submit suggested changes, I created a git repo. You can see the changes at
https://github.com/noahhl/r-google-analytics. I may make further tweaks to make
this more user friendly and push to that repo. I'm happy to commit here as well
(though I vastly prefer github).
Original issue reported on code.google.com by [email protected]
on 25 Feb 2011 at 5:59
Will this package be updated to work in R 2.14?
Original issue reported on code.google.com by [email protected]
on 2 Mar 2012 at 2:29
Hi,
I have carried out a code commit to the folder
/src/[email protected]. The code implements some
new features (Pagination, Query Splitting, Authorization Flow update) as well
as some changes in existing features. A sample Test code is provided in the
file test_code_1.R.
Original issue reported on code.google.com by [email protected]
on 3 Apr 2014 at 1:19
What steps will reproduce the problem?
1. Using any dimension (such as ga:landingPagePath) with a path
2. Running a query with that dimension (used ga:pageviews as metric)
What is the expected output? What do you see instead?
Query should run. Instead see this error:
> # 4. Make a request to get the data from the API
> ga.data <- ga$GetReportData(query)
Error in fromJSON(api.response.json, method = "C") :
unexpected character: 1
What version of the product are you using? On what operating system?
RGoogleAnalytics 1.3
"R version 3.0.0 (2013-04-03)"
Please provide any additional information below.
Seems like it's not able to parse the URL string in the fromJSON.
Original issue reported on code.google.com by [email protected]
on 1 Jul 2013 at 3:51
What steps will reproduce the problem?
1. set proxy settings with RCurlOtp
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Aug 2014 at 2:54
Are there plans to add a GetSegmentData function?
It would be really helpful to be able to pull that data into R similar to
GetProfileData to analyze different segments within the query.
Original issue reported on code.google.com by [email protected]
on 27 Mar 2013 at 2:20
You document wrong command to install a package in Debian/Ubuntu Linux. You
write incorrectly:
$ sudo apt install libcurl4-gnutls-dev [WRONG]
and it should be:
$ sudo apt-get install libcurl4-gnutls-dev
Cheers
Original issue reported on code.google.com by [email protected]
on 26 Mar 2013 at 12:48
What steps will reproduce the problem?
1. Install R 3.0
2. Download R for Google analytics
3. install the package
4. load the library
What is the expected output? What do you see instead?
Expected successful install. Saw this instead:
Error: package ‘RGoogleAnalytics’ was built before R 3.0.0: please
re-install it
What version of the product are you using? On what operating system?
64-bit Windows 8 R3.0
Please provide any additional information below.
Code:
> install.packages("C:\\Users\\iwyatt\\Downloads\\RGoogleAnalytics_1.2.zip")
inferring 'repos = NULL' from the file name
package ‘RGoogleAnalytics’ successfully unpacked and MD5 sums checked
> library("RGoogleAnalytics")
Error: package ‘RGoogleAnalytics’ was built before R 3.0.0: please
re-install it
Original issue reported on code.google.com by [email protected]
on 1 May 2013 at 4:05
What steps will reproduce the problem?
1. Sys.setenv(http_proxy="http://PROXY.com:80")
2. Run Post to get Access Token
3.
What is the expected output? What do you see instead?
I expect to get an access token back.
Instead I get:
Error in fromJSON(postForm("https://accounts.google.com/o/oauth2/token", :
STRING_ELT() can only be applied to a 'character vector', not a 'raw'
What version of the product are you using? On what operating system?
1.4
Please provide any additional information below.
R-3.0.2
Original issue reported on code.google.com by [email protected]
on 21 Mar 2014 at 6:32
What steps will reproduce the problem?
1. Inserting activity using web request to api
https://www.googleapis.com/youtube/v3/activities
What version of the product are you using? On what operating system?
youtube api version v3
operating system windows 7
Please provide any additional information below.
My code is:
string URL =
"https://www.googleapis.com/youtube/v3/activities?part=snippet&key=apikey";
string DATA = @"{'snippet': {'description': 'reply via api','channelId':
'youtube channelid'}}";
byte[] byteArray = Encoding.UTF8.GetBytes(DATA);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
request.Method = "POST";
request.UserAgent = "Google APIs Explorer";
request.ContentType = "text/json; charset=utf-8";
request.ContentLength = byteArray.Length;
request.Headers[HttpRequestHeader.Authorization] = "Bearer access token";
using (Stream dataStream = request.GetRequestStream())
{
dataStream.Write(byteArray, 0, byteArray.Length);
}
WebResponse webResponse = request.GetResponse();
using (Stream webStream = webResponse.GetResponseStream())
{
if (webStream != null)
{
using (StreamReader responseReader = new StreamReader(webStream))
{
string response = responseReader.ReadToEnd();
Console.Out.WriteLine(response);
}
}
}
Original issue reported on code.google.com by [email protected]
on 12 Feb 2014 at 12:28
What steps will reproduce the problem?
1. Create a GA segment in Google platform with a Advanced Conditions Session
Date filter.
2. Go to R and try to load this segment. Pick every segment except this one.
3. Try to create same segment except the session date condition.
4. Go to R and it works.
What is the expected output? What do you see instead?
To load the segment created in GA with the condition session date.
What version of the product are you using? On what operating system?
R 3.0.1(2013-05-16) + Windows 7 Professional
Please provide any additional information below.
I had to do this fix to segment work in R.
https://code.google.com/p/r-google-analytics/issues/detail?id=19
Original issue reported on code.google.com by [email protected]
on 23 May 2014 at 2:11
[deleted issue]
Hi,
I have carried out a code commit which adds a raw directory skeleton as well as
updated the naming convention of identifiers as per Google R Style Guide.
The updated version of the code is
/trunk/src/r-google-analytics-- username [email protected]/R/RGoogleAnalytics.R
and
/trunk/src/r-google-analytics-- username [email protected]/R/QueryBuilder.R
Original issue reported on code.google.com by [email protected]
on 22 Apr 2014 at 1:05
Hi, there is an error in Wiki on this site.
In Wiki/Specifying Queries, the code chunk,
segment = "dynamic::medium==organic",
It should be
segment = "dynamic::ga:medium==organic",
Original issue reported on code.google.com by [email protected]
on 17 Oct 2013 at 2:14
What steps will reproduce the problem?
1.
# Create a new Google Analytics API object
ga <- RGoogleAnalytics()
ga.profiles <- ga$GetProfileData(access_token)
2.
3.
What is the expected output? What do you see instead?
Variables will copied
Instead, i am getting an error
> ga <- RGoogleAnalytics()
Error: could not find function "RGoogleAnalytics"
> ga.profiles <- ga$GetProfileData(access_token)
Error: object 'ga' not found
What version of the product are you using? On what operating system?
R 3.0.1
Please provide any additional information below.
Also request you to please tell me whether we need to run the whole process of
access token again when we open the R console next time.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2013 at 1:33
What steps will reproduce the problem?
1. Update R to the latest version (3.0.1)
2. Re Install RGoogleAnalytics
3.
What is the expected output? What do you see instead?
Warning : RGoogleAnalytics is not available for R 3.0.0 and R 3.0.1
What version of the product are you using? On what operating system?
RGoogleAnalytics 1.3, Windows 7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Jun 2013 at 6:07
Attachments:
What steps will reproduce the problem?
1. set proxy settings with options(RCurlOptions = ...) within Rprofile.site
2. Check with getURL(...) call.
3. load library(RGoogleAnalytics)
4. run all needed steps as described on the product home page up to the
ga.account <- conf$GetAccounts() line
5. Get "Error in function (type, msg, asError = TRUE) : couldn't connect to
host"
6. Find out that RCurl proxy settings are broken.
It seems that running library(RGoogleAnalytics) overwites RCurlOptions (
Original issue reported on code.google.com by [email protected]
on 4 Aug 2014 at 3:03
Removed repeated line.
Original issue reported on code.google.com by [email protected]
on 11 Mar 2013 at 9:36
What steps will reproduce the problem?
# Loading the RGoogleAnalytics library
require("RGoogleAnalytics") #RGoogleAnalytics 1.4. zip
#source the functions
source("QueryBuilder.R")
source("RGoogleAnalytics.R")
# Step 1. Authorize your account and paste the accesstoken
query <- QueryBuilder()
access_token <- query$authorize()
What is the expected output? What do you see instead?
Dont know what the expected output is. What I get is a "attempt to apply
non-function" error..
What version of the product are you using? On what operating system?
R3.1.0 in RStudio 0.98 on Windows 7 Professional
It would be useful to document the authorization process for those who use GA
through the default dashboard and have no idea what to do.. = me
Original issue reported on code.google.com by [email protected]
on 11 Jul 2014 at 10:28
Attachments:
What steps will reproduce the problem?
1. conf<-Configuration()
2. conf$GetSegments()
3.
What is the expected output? What do you see instead?
Error in fromJSON(api.response.json, method = "C") :
unexpected escaped character '\(' at pos 41
What version of the product are you using? On what operating system?
1.4 on Win 7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 13 Apr 2014 at 7:34
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.