Coder Social home page Coder Social logo

Comments (3)

jgabry avatar jgabry commented on June 5, 2024

Hmm, this is very strange.

An old version of shinystan was called shinyStan, but that was before the
CRAN versions. But that shouldn't affect anything here, especially because
rstan doesn't require you to have shinystan.

Did you by any chance save an object creating by an old version of
shinystan (back when it was called shinyStan) in the same working directory
as your Stan model? Or maybe it's trying to load a saved workspace?

On Wednesday, October 28, 2015, apollostream [email protected]
wrote:

Hi,
I've successfully installed package "shinystan" from CRAN (and have also
successfully installed it from GitHub).

If I try to run "stan(...)" , I get the following error message:

mcmcStan <- stan(file = 'mymodel.stan', data = myData, chains = 0) # Prep
run ("chains=0") to compile model.
Loading required package: shinyStan
Error in .requirePackage(package) :
unable to find required package ‘shinyStan’
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE, :
there is no package called ‘shinyStan’

Or even if I try to reinstall shiny (just fishing), R complains:

install.packages("shiny")
Loading required package: shinyStan
Error in .requirePackage(package) :
unable to find required package ‘shinyStan’
Installing package into ‘C:/xxxxxxxxxxxx/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL '
https://cran.rstudio.com/bin/windows/contrib/3.2/shiny_0.12.2.zip'
Content type 'application/zip' length 1866824 bytes (1.8 MB)
downloaded 1.8 MB

Note that the asked for package name in the error message is camelcase
"shinyStan", which of course is not the same as the all lowercase name of
the actual installed package "shinystan".

Am I missing something? How do I get stan to run again -- I've only had
this problem since upgrading to the latest version of rstan?

Thanks.


Reply to this email directly or view it on GitHub
#98.

from shinystan.

apollostream avatar apollostream commented on June 5, 2024

I believe an old object or option setting must have been retained in the environment. After restarting RStudio (and of course R), rstan and shinystan ran just fine.
Thank you!
On Oct 28, 2015 12:53 PM, Jonah Gabry [email protected] wrote:Hmm, this is very strange.

An old version of shinystan was called shinyStan, but that was before the
CRAN versions. But that shouldn't affect anything here, especially because
rstan doesn't require you to have shinystan.

Did you by any chance save an object creating by an old version of
shinystan (back when it was called shinyStan) in the same working directory
as your Stan model? Or maybe it's trying to load a saved workspace?

On Wednesday, October 28, 2015, apollostream [email protected]
wrote:

Hi,
I've successfully installed package "shinystan" from CRAN (and have also
successfully installed it from GitHub).

If I try to run "stan(...)" , I get the following error message:

mcmcStan <- stan(file = 'mymodel.stan', data = myData, chains = 0) # Prep
run ("chains=0") to compile model.
Loading required package: shinyStan
Error in .requirePackage(package) :
unable to find required package ‘shinyStan’
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE, :
there is no package called ‘shinyStan’

Or even if I try to reinstall shiny (just fishing), R complains:

install.packages("shiny")
Loading required package: shinyStan
Error in .requirePackage(package) :
unable to find required package ‘shinyStan’
Installing package into ‘C:/xxxxxxxxxxxx/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL '
https://cran.rstudio.com/bin/windows/contrib/3.2/shiny_0.12.2.zip'
Content type 'application/zip' length 1866824 bytes (1.8 MB)
downloaded 1.8 MB

Note that the asked for package name in the error message is camelcase
"shinyStan", which of course is not the same as the all lowercase name of
the actual installed package "shinystan".

Am I missing something? How do I get stan to run again -- I've only had
this problem since upgrading to the latest version of rstan?

Thanks.


Reply to this email directly or view it on GitHub
#98.

—Reply to this email directly or view it on GitHub.

from shinystan.

jgabry avatar jgabry commented on June 5, 2024

Glad it's working now!

from shinystan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.