You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Since <code>bloomr.build.R</code> downloads resources from the net, therefore one problem you might face is a download error.</p>
137
+
<p>Since <code>bloomr.build.R</code> downloads resources from the net, one problem you might face is a download error.</p>
138
138
<p>Based on my experiences, the script does a good job in detecting download errors, despite it is always possible that a corrupted download is not identified.</p>
139
-
<p>When a donwnload error is detected, <code>bloomr.build.R</code> make a second attempt. You can control this with:</p>
139
+
<p>When a donwnload error is detected, <code>bloomr.build.R</code> makes a second attempt. You can control this with:</p>
<p>where <em>n</em> are the download attempts.</p>
142
-
<p>When the maximum number of attempt is reached, the script exits deleting any incompleted file and emitting a message detailing the download error.<br />When you start over (hoping in a better connection), you might not want to download again every and each file, but only those affected by the errors. This is done with the option:</p>
141
+
<p>where <em>n</em> are the download attempts.<br />When the maximum number of attempt is reached, the script exits deleting any incompleted file and emitting a message detailing the download error.</p>
142
+
<p>When you start over (hoping in a better connection), you might not want to download again every and each file, but only those affected by the errors. This is done with the option:</p>
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,17 +98,17 @@ If you want to find `BloomR.zip` too in your work directory use:
98
98
99
99
### Internet connection
100
100
101
-
Since `bloomr.build.R` downloads resources from the net, therefore one problem you might face is a download error.
101
+
Since `bloomr.build.R` downloads resources from the net, one problem you might face is a download error.
102
102
103
103
Based on my experiences, the script does a good job in detecting download errors, despite it is always possible that a corrupted download is not identified.
104
104
105
-
When a donwnload error is detected, `bloomr.build.R`make a second attempt. You can control this with:
105
+
When a donwnload error is detected, `bloomr.build.R`makes a second attempt. You can control this with:
106
106
107
107
makeBloomR("path\to\workDir", ndown = n)
108
108
109
-
where _n_ are the download attempts.
109
+
where _n_ are the download attempts.
110
+
When the maximum number of attempt is reached, the script exits deleting any incompleted file and emitting a message detailing the download error.
110
111
111
-
When the maximum number of attempt is reached, the script exits deleting any incompleted file and emitting a message detailing the download error.
112
112
When you start over (hoping in a better connection), you might not want to download again every and each file, but only those affected by the errors. This is done with the option:
## The following objects are masked from 'package:base':
261
-
##
262
-
## as.Date, as.Date.numeric
263
-
##
264
257
## Loading 3988 HK Equity
265
258
## Loading C US Equity
266
259
## Loading 601288 CH Equity
@@ -281,24 +274,27 @@ <h2>Demonstration</h2>
281
274
<pre class="r"><code>data</code></pre>
282
275
<pre><code>## $Financial
283
276
## 3988 HK C US 601288 CH BAC US HSBA LN
284
-
## 2015-02-28 NA NA 11.666 NA 10.116
285
-
## 2015-03-01 NA 10.327 NA NA NA
286
-
## 2015-03-02 10.723 NA 8.144 9.223 10.526
287
-
## 2015-03-04 10.437 10.246 NA NA 9.512
277
+
## 2015-02-28 NA 11.070 10.444 9.635 10.136
278
+
## 2015-03-01 NA 11.749 9.367 NA 9.760
279
+
## 2015-03-02 NA NA NA NA 12.508
280
+
## 2015-03-03 8.851 NA 10.298 NA NA
281
+
## 2015-03-04 9.510 NA NA 10.657 NA
288
282
##
289
283
## $Technology
290
284
## QCOM US CSCO US 700 HK IBM US INTC US
291
-
## 2015-02-28 9.264 11.006 NA 10.337 11.405
292
-
## 2015-03-01 11.009 10.134 NA 8.566 NA
293
-
## 2015-03-02 9.703 10.786 NA NA NA
294
-
## 2015-03-03 NA 10.023 6.854 8.297 9.772
295
-
## 2015-03-04 NA 8.852 NA 11.110 NA
285
+
## 2015-02-28 NA 8.147 NA 10.543 NA
286
+
## 2015-03-01 NA8.834 8.866 NA NA
287
+
## 2015-03-02 NA 10.034 8.984 10.006 NA
288
+
## 2015-03-03 NA 9.750 NA 9.566 NA
289
+
## 2015-03-04 10.397 NA 10.828 NA 9.817
296
290
##
297
291
## $Indices
298
292
## DJI DJUSFN W1TEC
299
-
## 2015-03-02 13.374 9.328 10.989
300
-
## 2015-03-03 10.374 NA NA
301
-
## 2015-03-04 10.180 NA 9.466</code></pre>
293
+
## 2015-02-28 9.461 9.118 9.661
294
+
## 2015-03-01 10.255 NA 11.603
295
+
## 2015-03-02 9.847 10.425 NA
296
+
## 2015-03-03 9.993 NA 9.687
297
+
## 2015-03-04 8.082 9.797 8.453</code></pre>
302
298
<p>Note:</p>
303
299
<ul>
304
300
<li><p>The name of the securities tickers is stored without the security type: “Equity”, “Index”, etc.<br />If this piece of info is significant for you, pass <code>showtype = TRUE</code>.</p></li>
@@ -468,10 +464,9 @@ <h2>Example</h2>
468
464
<pre><code>## Loading MSFT US Equity
469
465
## Loading AMZN US Equity</code></pre>
470
466
<pre><code>## MSFT US AMZN US
471
-
## 2015-02-28 9.980 NA
472
-
## 2015-03-02 9.632 9.796
473
-
## 2015-03-03 6.868 9.605
474
-
## 2015-03-04 11.289 NA</code></pre>
467
+
## 2015-03-01 NA 8.664
468
+
## 2015-03-02 9.701 NA
469
+
## 2015-03-04 11.072 NA</code></pre>
475
470
<pre class="r"><code>br.close(con) # Use the token to release the connection</code></pre>
476
471
</div>
477
472
<div id="see-also" class="section level2">
@@ -699,9 +694,6 @@ <h2>Arguments</h2>
699
694
<div id="details-6" class="section level2">
700
695
<h2>Details</h2>
701
696
<p>If <code>component</code> is <code>day</code>, <code>month</code> or <code>year</code>: <code>component(d)</code> returns the <em>component</em> of the date <code>d</code> as an integer; <code>component(d, n)</code> returns the date <code>d</code> with the <em>component</em> set to the integer <code>n</code>; <code>component(d)= n</code> sets to the <em>component</em> of the date <code>d</code> to the integer <code>n</code>.<br /><code>%+%</code> and <code>%-%</code> add and subtract months to a date.<br /><code>last.day</code> returns last day of the month as an integer. <code>day.us</code> calculates date differences with the US convention.</p>
0 commit comments