[Rprotobuf-commits] r920 - papers/jss

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Dec 1 03:00:55 CET 2014


Author: jeroenooms
Date: 2014-12-01 03:00:53 +0100 (Mon, 01 Dec 2014)
New Revision: 920

Modified:
   papers/jss/article.Rnw
Log:
Use shorter ocpu URL

Modified: papers/jss/article.Rnw
===================================================================
--- papers/jss/article.Rnw	2014-12-01 01:08:23 UTC (rev 919)
+++ papers/jss/article.Rnw	2014-12-01 02:00:53 UTC (rev 920)
@@ -1263,7 +1263,7 @@
 client performs the following HTTP request:
 
 \begin{verbatim}
-  GET https://public.opencpu.org/ocpu/library/MASS/data/Animals/pb
+  GET https://demo.ocpu.io/MASS/data/Animals/pb
 \end{verbatim}
 The postfix \code{/pb} in the URL tells the server to send this
 object in the form of a Protocol Buffer message.
@@ -1286,7 +1286,7 @@
 library("RProtoBuf")
 library("httr")
 
-req <- GET('https://public.opencpu.org/ocpu/library/MASS/data/Animals/pb')
+req <- GET('https://demo.ocpu.io/MASS/data/Animals/pb')
 output <- unserialize_pb(req$content)
 
 identical(output, MASS::Animals)
@@ -1311,7 +1311,7 @@
 import urllib2
 from rexp_pb2 import REXP
 
-req = urllib2.Request('https://public.opencpu.org/ocpu/library/MASS/data/Animals/pb')
+req = urllib2.Request('https://demo.ocpu.io/MASS/data/Animals/pb')
 res = urllib2.urlopen(req)
 
 msg = REXP()
@@ -1349,7 +1349,7 @@
 payload <- serialize_pb(args, NULL)
 
 req <- POST (
-  url = "https://public.opencpu.org/ocpu/library/stats/R/rnorm/pb",
+  url = "https://demo.ocpu.io/stats/R/rnorm/pb",
   body = payload,
   add_headers (
     "Content-Type" = "application/x-protobuf"



More information about the Rprotobuf-commits mailing list