Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Chapter 3 content for 10/4/2023 meeting #2

Merged
merged 19 commits into from
Oct 13, 2023

Conversation

AmandaRP
Copy link
Contributor

@AmandaRP AmandaRP commented Oct 4, 2023

No description provided.

jonthegeek
jonthegeek previously approved these changes Oct 4, 2023
Copy link
Member

@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

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

This looks great! We'll have to see how things go with the book, though; we might want to accelerate a move to (cached) quarto for this club if the notes won't build!

@jonthegeek jonthegeek enabled auto-merge (squash) October 4, 2023 15:49
@AmandaRP
Copy link
Contributor Author

AmandaRP commented Oct 4, 2023

Right, I forgot that cuda operations won't work in the GiHub workflow. Theoretically the book examples can all be run on CPU. I'll comment out a couple of cuda specific lines of code and re-submit a pull request.

auto-merge was automatically disabled October 4, 2023 16:42

Head branch was pushed to by a user without write access

@jonthegeek
Copy link
Member

@AmandaRP Run this at your command line, and push the resulting DESCRIPTION (or you can add torch directly, but it's good to get in the habit of usethis workflows!)

usethis::use_package("torch")

It definitely won't build without that, and we'll likely have to update the GHA to tell it to install torch. I'll pull up some of my torch-using remind myself how that works...

Copy link
Member

@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

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

Is it possible to not use the okc dataset in the notes (either by not actually rendering whatever you do with it, or by switching to a different dataset)? It was deprecated due to concerns with the data. It's one thing for the book to use it, but we shouldn't propagate the issues (and installing the old version is a huge pain).

@AmandaRP
Copy link
Contributor Author

AmandaRP commented Oct 4, 2023

Gotcha. I'll look at using a different dataset.

jonthegeek
jonthegeek previously approved these changes Oct 4, 2023
Copy link
Member

@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

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

Sweet, thanks! Now we just need to get it to actually build...

@jonthegeek jonthegeek enabled auto-merge (squash) October 4, 2023 21:47
@AmandaRP
Copy link
Contributor Author

AmandaRP commented Oct 4, 2023

Looks like install_torch() needs to be run at some point in the process.

@AmandaRP
Copy link
Contributor Author

@jonthegeek , Where in the repo would it be best to add the torch::install_torch() command? Also, where in the GitHub workflow does R package installation occur? (I didn't see install.packages() commands in the repo.)

@jonthegeek
Copy link
Member

@AmandaRP I'm so sorry, this fell off my to-do list! I'm pretty sure I've gotten torch working in GHA before, so I'll spend the next hour or two sorting this out (I hope)!

@AmandaRP
Copy link
Contributor Author

OK, no rush! I was just looking at it too see if I should do something, but wasn't sure the best approach. Thanks for your help!

I'm not confident this will work but we might as well try!
One more try at a quick fix before reading documentation.
Probably still won't work but it's closer.
So if earlier chapters use it in later clubs, it's set to go.
Copy link
Member

@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

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

This should fix it!

@jonthegeek jonthegeek merged commit 5f750cf into r4ds:main Oct 13, 2023
1 check passed
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.

2 participants