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

Install GitHub #60

Merged
merged 36 commits into from
Mar 18, 2020
Merged

Install GitHub #60

merged 36 commits into from
Mar 18, 2020

Conversation

JanCaha
Copy link
Collaborator

@JanCaha JanCaha commented Mar 17, 2020

This pull request introduces a new metadata line that allows the installation of R packages from GitHub via R package remotes.

The format is:

##JanCaha/CzechData, JanCaha/SpatialKDE=github_install

Which is processed just before the packages are loaded.

This quite likely very useful as there is a significant amount of packages that are not available from CRAN (for various reasons). This allows users to use these packages and declare this use formally.

nyalldawson and others added 30 commits November 7, 2019 21:38
This causes different temporary paths to be generated, so any temporary paths
shown in the log window won't match the ones actually used when executing the
algorithm
# Conflicts:
#	.travis.yml
#	README.md
#	website/mkdocs.yml
#	website/pages/index.md
#	website/pages/script-syntax.md
…install packages from GitHub and then load packages from script
Copy link
Contributor

@nyalldawson nyalldawson left a comment

Choose a reason for hiding this comment

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

Nice feature!

Comment on lines 468 to 483
packages = self.r_templates.get_necessary_packages()

for p in packages:
commands.append(self.r_templates.check_package_availability(p))
commands.append(self.r_templates.load_package(p))

if self.r_templates.install_github:
for dependency in self.r_templates.github_dependencies:
commands.append(self.r_templates.install_package_github(dependency))

packages_script = RUtils.get_required_packages(self.script)

for p in packages_script:
commands.append(self.r_templates.check_package_availability(p))
commands.append(self.r_templates.load_package(p))

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this whole block of code could be moved to r_templates -- what do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That makes sense, all the info is contained there anyway! I will fix it later today :)

Btw: Just out of curiosity, is there a way to add the changes to this pull request or do I have to close it and make a new one?

Copy link
Contributor

Choose a reason for hiding this comment

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

If you commit them to the same branch and then push, they'll appear here automatically!

@nyalldawson
Copy link
Contributor

@JanCaha we should add this to the documentation too. When it's merged I'll push out a new release

@JanCaha JanCaha merged commit 02de952 into north-road:master Mar 18, 2020
@JanCaha JanCaha deleted the install_github branch March 18, 2020 13:19
@nyalldawson
Copy link
Contributor

Thanks! Happy for me to push a new release off master?

@JanCaha
Copy link
Collaborator Author

JanCaha commented Mar 18, 2020

Of course :)

Hopefully, I will remember until the morning to update the Changelog for the website ...

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