Skip to content

add updates to documentation to resolve installation issues - #64

Open
joshuafayallen wants to merge 1 commit into
asheshrambachan:masterfrom
joshuafayallen:master
Open

add updates to documentation to resolve installation issues#64
joshuafayallen wants to merge 1 commit into
asheshrambachan:masterfrom
joshuafayallen:master

Conversation

@joshuafayallen

Copy link
Copy Markdown

Hi All,
I was installing the package and found that the issue related to installation ARM Macs may have had to with issues related to not having C++ headers correctly sinceCVXR's dependencies rely on RCPP

─CVXR 1.0-15 ✨🔧 ⬇ (4.85 MB)
│ ├─Matrix 1.7-3 
│ │ └─lattice 0.22-6 
│ ├─Rcpp 1.0.14 ✨🔧 ⬇ (3.36 MB)
│ ├─bit64 4.6.0-1 ✨🔧 ⬇ (575.59 kB)
│ │ └─bit 4.6.0 ✨🔧 ⬇ (728.15 kB)
│ ├─gmp 0.7-5 ✨🔧 ⬇ (907.30 kB)
│ ├─Rmpfr 1.0-0 ✨🔧 ⬇ (1.56 MB)
│ │ └─gmp
│ ├─ECOSolveR 0.5.5 ✨🔧 ⬇ (1.13 MB)
│ ├─scs 3.2.4 ✨🔧 ⬇ (1.33 MB)
│ ├─osqp 0.6.3.3 ✨🔧 ⬇ (556.42 kB)
│ │ ├─Rcpp
│ │ ├─Matrix
│ │ └─R6 2.6.1 ✨ ⬇ (86.91 kB)
│ └─cli 3

This pull request simply updates the documents to point users in the right direction to resolve this issue.

@jonathandroth

Copy link
Copy Markdown
Collaborator

Thanks very much, Josh! (I assume you are not the QB of the Bills...)

@mcaceresb can you review and merge if you think appropriate

@joshuafayallen

Copy link
Copy Markdown
Author

No worries! Lol I would love that pay bump

Comment thread .gitignore
.Ruserdata
.DS_Store

/.quarto/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is quarto required for this fix?

Comment thread README.Rmd
install.packages('remotes')
# install from github
remotes::install_github("asheshrambachan/HonestDiD")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why blank line? This is present in a few code chunks.

Comment thread README.Rmd

```

Your installation may fail if the C++ headers are not configured correctly and you may see something to this effect.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this?

Some of HonestDiD's dependencies are known to cause installation issues on some systems. If the C++ headers are not configured correctly, for example, you may see an error similar to:

Comment thread README.Rmd
make: *** [foo.o] Error 1

```
To resolve this issue you should consult the [rstan installation page](https://github.com/stan-dev/rstan/wiki/Configuring-C---Toolchain-for-Mac) which will configure the C++ toolchain properly. After modifying the `makevars` file be sure to restart your R session.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change

which will configure

to something similar to

and follow the applicable instructions to configure

(since the page doesn't configure anything; it has instructions).

Comment thread README.Rmd
make: *** [foo.o] Error 1

```
To resolve this issue you should consult the [rstan installation page](https://github.com/stan-dev/rstan/wiki/Configuring-C---Toolchain-for-Mac) which will configure the C++ toolchain properly. After modifying the `makevars` file be sure to restart your R session.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the makevars file?

Comment thread README.Rmd
```
To resolve this issue you should consult the [rstan installation page](https://github.com/stan-dev/rstan/wiki/Configuring-C---Toolchain-for-Mac) which will configure the C++ toolchain properly. After modifying the `makevars` file be sure to restart your R session.

If all else fails then you can simply turn off warnings which will install the package without configuring the C++ toolchain.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a downside to doing this? We should include a note explaining the gains from doing the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants