problems loading rethinking

Open
#403 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

The install fails at line 3 of an R source file in the package, where the RSTUDIO check has a broken condition: Sys.getenv("RSTUDIO") == "1" && RSTUDIO_TERM")) &&. The quote and parentheses don't match, so the expression is a syntax error. Find that line in the repository, correct the expression so it parses, then confirm the package installs from source on macOS. Done means the install completes without the 'unexpected string constant' error.

Written by the indexing model from the issue text.

Description

I successfully loaded all required packages and cmdstanr but get this error message when trying to install on my macbook (via github) rethinking:

Error: 3:49: unexpected string constant
3: if (Sys.getenv("RSTUDIO") == "1" && RSTUDIO_TERM")) &&
4: Sys.info()["
^
Execution halted
Warning: installation of package ‘/var/folders/66/6yy31gvd2ggdrcmn0v72j0z40000gn/T//RtmpeeoKLf/file94266c818b17/rethinking_2.31.tar.gz’ had non-zero exit status

Any ideas how to fix this? Thanks.

Dominant language
R
Stars
2.4k
Forks
632
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rmcelreath/rethinking

All issues in rmcelreath/rethinking

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.