rmcelreath / rethinking

Statistical Rethinking course and book package
2.14k stars 603 forks source link

Rethink package is NOT getting installed #421

Closed javadshaterian closed 7 months ago

javadshaterian commented 7 months ago

I followed all of these steps, it was not clear in the first step what to add to the PATH - I assumed the exact examples C:\Program Files\GIT\cmd and C;|Program Files:\Program Files\nodejs seen in the example to be added to the Path then in the second step files are installed - I think they were supposed to match with PATH Finally These commands library(rethinking) globe.qa <- quap( alist( W ~ dbinom( W+L ,p) , # binomial likelihood p ~ dunif(0,1) # uniform prior ) , data=list(W=6,L=3) )

display summary of quadratic approximation

precis( globe.qa ) They were not working command "quap " NOT found Any solution - any guide if I have gone the wrong ways Thanks Javad

javadshaterian commented 7 months ago

The book is supposed to be a good guide - but I am stopped at "quadratic approximation"

javadshaterian commented 7 months ago

C;\Program Files\nodejs is the correct new path I added with no result

javadshaterian commented 7 months ago

By the way, I have Windows 10 working on my computer

javadshaterian commented 7 months ago

I installed Package.Rethink - through the base of it (it is suggested in a separate window that popped up - it did not install by refreshing R first suggestion as for the first suggestion

rmcelreath commented 7 months ago

Hi. You are having trouble with the C++ tool chain perhaps. I guess that from the PATH comments. The rethinking package is downstream of that and does nothing directly with it. So I cannot help here in solving your C++ tool chain problem. Lots of Windows people have trouble installing the C++ tool chain though so there is probably a lot of help online.

javadshaterian commented 7 months ago

Hi Thanks for the response From YouTube - you are an excellent instructor This is my second book on R modeling - Having stopped even downloading the required package - Was this version of package made for Windows?

As for the PATH change -was it right to add those new command- lines to the PATH ? No indicates what to do once I have opened the edit path Regards

On Tue, Feb 20, 2024 at 1:19 AM Richard McElreath @.***> wrote:

Hi. You are having trouble with the C++ tool chain perhaps. I guess that from the PATH comments. The rethinking package is downstream of that and does nothing directly with it. So I cannot help here in solving your C++ tool chain problem. Lots of Windows people have trouble installing the C++ tool chain though so there is probably a lot of help online.

— Reply to this email directly, view it on GitHub https://github.com/rmcelreath/rethinking/issues/421#issuecomment-1953687286, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEVLEY6A5WKHUHPIF6E3WXLYURL7JAVCNFSM6AAAAABDP75DUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGY4DOMRYGY . You are receiving this because you authored the thread.Message ID: @.***>

rmcelreath commented 7 months ago

My package is for all platforms that R runs on.

Your troubles have nothing to do with my package, but with dependencies that you have not installed properly. I suspect the C++ tool chain is the problem.

See https://mc-stan.org/docs/cmdstan-guide/cmdstan-installation.html#windows

javadshaterian commented 7 months ago

I just want to let you know - I read somewhere that the package does not work under RStudio - I tried a simple old-fashioned " R Console" (code and results are in one window) - Surprisingly codes started working - Does this change your idea about the problem?

Mean StdDev 5.5% 94.5% p 0.67 0.16 0.42 0.92

On Tue, Feb 20, 2024 at 11:19 AM Richard McElreath @.***> wrote:

My package is for all platforms that R runs on.

Your troubles have nothing to do with my package, but with dependencies that you have not installed properly. I suspect the C++ tool chain is the problem.

See https://mc-stan.org/docs/cmdstan-guide/cmdstan-installation.html#windows

— Reply to this email directly, view it on GitHub https://github.com/rmcelreath/rethinking/issues/421#issuecomment-1954805076, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEVLEY5F7HO7TK3DEAXXV23YUTSJXAVCNFSM6AAAAABDP75DUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUHAYDKMBXGY . You are receiving this because you authored the thread.Message ID: @.***>