Skip to content

Commit

Permalink
[fixed][xs]: updated path for datapackage.json -refs #115
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikanebu committed Oct 25, 2017
1 parent ce3bef8 commit c72495b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/_instructions.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<pre class="hljs"><code>install.packages(<span class="hljs-string">"rjson"</span>)
<span class="hljs-keyword">library</span>(<span class="hljs-string">"rjson"</span>)

json_file &lt;- <span class="hljs-string">"https://pkgstore.datahub.io/core/finance-vix/latest/datapackage.json"</span>
json_file &lt;- <span class="hljs-string">'{{dataset.path}}/datapackage.json'</span>
json_data &lt;- fromJSON(paste(readLines(json_file), collapse=<span class="hljs-string">""</span>))

<span class="hljs-comment"># see metadata</span>
Expand Down Expand Up @@ -68,7 +68,7 @@

<pre class="hljs"><code><span class="hljs-keyword">from</span> datapackage <span class="hljs-keyword">import</span> Package, Resource

package = Package(<span class="hljs-string">'https://pkgstore.datahub.io/core/finance-vix/latest/datapackage.json'</span>)
package = Package(<span class="hljs-string">'{{dataset.path}}/datapackage.json'</span>)

<span class="hljs-comment"># see metadata</span>
print(package.descriptor)
Expand Down

0 comments on commit c72495b

Please sign in to comment.