[R] Problems with rstan
david.jessop at ubs.com
david.jessop at ubs.com
Mon Mar 14 15:22:14 CET 2016
Hi
I'm having a really odd problem with rstan (and in fact shiny), which is I can't actually load the package:
> ls (all=TRUE)
character(0)
> library (rstan)
Loading required package: ggplot2
Error : .onAttach failed in attachNamespace() for 'rstan', details:
call: pkgdesc$Packaged
error: $ operator is invalid for atomic vectors
In addition: Warning messages:
1: package 'rstan' was built under R version 3.2.4
2: In packageDescription("rstan", lib.loc = rstanLib) :
no package 'rstan' was found
Error: package or namespace load failed for 'rstan'
And for shiny
> library (shiny)
Error : .onAttach failed in attachNamespace() for 'shiny', details:
call: utils::packageVersion("htmlwidgets")
error: package 'htmlwidgets' not found
Error: package or namespace load failed for 'shiny'
But I have htmlwidgets in our package folder. So if I then load htmlwidgets and reload shiny everything is happy. The packages are installed on a shared drive.
My session is
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_2.0.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.3 digest_0.6.9 mime_0.4 grid_3.2.3 plyr_1.8.3 R6_2.1.1 xtable_1.8-0 gtable_0.2.0
[9] stats4_3.2.3 scales_0.3.0 tools_3.2.3 munsell_0.4.2 shiny_0.13.0 httpuv_1.3.3 rstan_2.9.0-3 inline_0.3.14
[17] colorspace_1.2-6 htmltools_0.3 gridExtra_2.2.1
Any help gratefully received.
Regards
David
-------------- next part --------------
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mails are not encrypted and cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities
or related financial instruments.
UBS Limited is a company limited by shares incorporated in the United
Kingdom registered in England and Wales with number 2035362.
Registered Office: 1 Finsbury Avenue, London EC2M 2PP
UBS Limited is authorised by the Prudential Regulation Authority
and regulated by the Financial Conduct Authority and the Prudential
Regulation Authority.
UBS AG is a public company incorporated with limited liability in
Switzerland domiciled in the Canton of Basel-City and the Canton of
Zurich respectively registered at the Commercial Registry offices in
those Cantons with new Identification No: CHE-101.329.561 as from 18
December 2013 (and prior to 18 December 2013 with Identification
No: CH-270.3.004.646-4) and having respective head offices at
Aeschenvorstadt 1, 4051 Basel and Bahnhofstrasse 45, 8001 Zurich,
Switzerland and is authorised and regulated by the Financial Market
Supervisory Authority in Switzerland. Registered in the United
Kingdom as a foreign company with No: FC021146 and having a UK
Establishment registered at Companies House, Cardiff, with
No: BR 004507. The principal office of UK Establishment: 1 Finsbury
Avenue, London EC2M 2PP. In the United Kingdom, UBS AG is authorised
by the Prudential Regulation Authority and subject to regulation
by the Financial Conduct Authority and limited regulation by the
Prudential Regulation Authority. Details about the extent of our
regulation by the Prudential Regulation Authority are available
from us on request.
UBS reserves the right to retain all messages. Messages are protected
and accessed only in legally justified cases.
More information about the R-help
mailing list