Skip to content

qmao installation failure

5 messages · dornan, G See, tbam

#
great package, thanks for putting it together.  Getting some errors and
wondering if someone could help. Sorry in advance if posting format 

#only a few lines with this command
Goog.Q.EPS
2012-03-31       8.75
2012-06-30       8.56
2012-09-30       6.47
2012-12-31       9.40
2013-03-31      10.00
Warning message:
In readLines(tmp) :
  incomplete final line found on
'C:\Users\BAM\AppData\Local\Temp\RtmpC0laFg\file111060ec69e2'

#xts, gdata, pander, all installed, but getting this error
Error in `[.data.frame`(df, , "TIME") : undefined columns selected
In addition: Warning messages:
1: NAs introduced by coercion 
2: NAs introduced by coercion 
3: NAs introduced by coercion 

Thanks for any help!



--
View this message in context: http://r.789695.n4.nabble.com/qmao-installation-failure-tp4661552p4667618.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
Please provide the output of sessionInfo()

For me, with this sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C                 LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] qmao_1.6.5.2              XML_3.96-1.1
[3] gdata_2.12.0.2            FinancialInstrument_1.1.7
[5] quantmod_0.4-0            TTR_0.22-0.1
[7] Defaults_1.1-1            xts_0.9-3.2
[9] zoo_1.7-10

loaded via a namespace (and not attached):
 [1] bitops_1.0-5    caTools_1.14    digest_0.6.3    grid_3.0.1
 [5] gtools_2.7.1    httpuv_1.0.5    lattice_0.20-15 pander_0.3.5
 [9] RCurl_1.95-4.1  RJSONIO_1.0-3   shiny_0.5.0.99  xtable_1.7-1

I get this
EPS.ESTIMATE EPS.ACTUAL PREV.YEAR.ACTUAL
2004-10-21 15:15:00           NA         NA               NA
2005-02-01 15:15:00           NA         NA               NA
2005-04-21 15:15:00           NA         NA               NA
2005-07-21 15:15:00           NA         NA               NA
2005-10-20 15:15:00           NA         NA               NA
2006-01-31 15:15:00           NA         NA               NA
2006-04-20 15:15:00         1.98       2.29               NA
2006-07-20 15:15:00         2.22       2.49               NA
2006-10-19 15:15:00         2.42       2.62               NA
2007-01-31 15:15:00         2.92       3.18               NA
2007-04-19 15:15:00         3.31       3.68             2.29
2007-07-19 15:15:00         3.59       3.56             2.49
2007-10-18 15:15:00         3.78       3.91             2.62
2008-01-31 15:15:00         4.44       4.43             3.18
2008-04-17 15:15:00         4.52       4.84             3.68
2008-07-17 15:15:00         4.74       4.63             3.56
2008-10-16 15:15:00         4.75       4.92             3.91
2009-01-22 15:15:00         4.95       5.10             4.43
2009-04-16 15:15:00         4.93       5.16             4.84
2009-07-16 15:15:00         5.09       5.36             4.63
2009-10-15 15:15:00         5.42       5.89             4.92
2010-01-21 15:15:00         6.48       6.79             5.10
2010-04-15 15:15:00         6.60       6.76             5.16
2010-07-15 15:15:00         6.52       6.45             5.36
2010-10-14 15:15:00         6.69       7.64             5.89
2011-01-20 15:15:00         8.10       8.75             6.79
2011-04-14 15:15:00         8.10       8.08             6.76
2011-07-14 15:15:00         7.85       8.74             6.45
2011-10-13 15:15:00         8.74       9.72             7.64
2012-01-19 15:15:00        10.50       9.50             8.75
2012-04-12 15:15:00         9.65      10.08             8.08
2012-07-19 15:15:00        10.04      10.12             8.74
2012-10-18 15:15:00        10.65       9.03             9.72
2013-01-22 15:15:00        10.42      10.59             9.50
2013-04-18 15:15:00        10.66      11.58            10.08
2013-07-15 15:15:00        10.80         NA            10.12
Warning message:
In FUN(c("15-Jul-13 - 19-Jul-13", "18-Apr-13 AMC", "22-Jan-13 AMC",  :
  Using 1st date of earnings date range

Garrett
On Tue, May 21, 2013 at 11:09 AM, dornan <brendan_dornan at hotmail.com> wrote:
#
R version 2.15.3 (2013-03-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] pander_0.3.6              qmao_1.6                  ggplot2_0.9.3.1          
 [4] devtools_1.1              XML_3.96-1.1              gdata_2.12.0.2           
 [7] FinancialInstrument_1.1.7 quantmod_0.4-0            TTR_0.22-0               
[10] Defaults_1.1-1            xts_0.9-3                 zoo_1.7-9    

Thanks!



--
View this message in context: http://r.789695.n4.nabble.com/qmao-installation-failure-tp4661552p4667635.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
Please update qmao.

With the earnings.com webpage, XML:::readHTMLTable() used to return a
data.frame where the first row was the headers, so getEarnings() and
other functions worked around that by setting the names() to be the
first row, then removing that row. In the current release of XML,
readHTMLTable() gets the names() right, so my previous work-around is
no longer necessary.

The current version of qmao is 1.6.5.2.  Let me know if you still have
issues after upgrading.

Garrett
On Tue, May 21, 2013 at 2:10 PM, tbam <brendan_dornan at hotmail.com> wrote:
#
BTW, this Warning (as opposed to error) in getEPS()

Warning message:
In readLines(tmp) :
  incomplete final line found on
'C:\Users\BAM\AppData\Local\Temp\RtmpC0laFg\file111060ec69e2'

actually comes from getFinancials().  It's harmless, but could be
avoided if getFinancials() were patched to use warn=FALSE in the
readLines() call.


Josh, Jeff,

Line 13 of getFinancials.R could be changed from

    Symbol <- readLines(tmp)

to

    Symbols <- readLines(tmp, warn=FALSE)


Garrett