No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2fea4e0 Oct 17, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src final Windows fix? Oct 15, 2018
test fix for Windows Oct 15, 2018
.gitignore no .DS_Store in git Oct 11, 2018
LICENSE Initial commit Oct 5, 2018
Manifest.toml new TOML Oct 15, 2018
Project.toml new TOML Oct 15, 2018
README.md Update README.md Oct 17, 2018
REQUIRE new REQUIRE Oct 15, 2018

README.md

InstantiateFromURL

A way to bind dependency information to Julia assets without the need to pass around TOML files

Will download, unpack, and activate a tarball of the resources in pwd/.projects

Based on Valentin Churavy's idea in https://github.com/JuliaLang/IJulia.jl/issues/673#issuecomment-425306944

Overview

GitHub repositories are expected to include a Project.toml and Manifest.toml file in the root directory, and all other files are ignored. For ex: QuantEcon/QuantEconLecturePackages

All of the following are valid calls:

  • activate_github("QuantEcon/QuantEconLecturePackages"), which saves to .projects/QuantEconLecturePackages-master
  • activate_github("QuantEcon/QuantEconLecturePackages", tag = "master"), which gives us the same thing.
  • activate_github("QuantEcon/QuantEconLecturePackages", tag = "v0.1.0"), which saves that version to .projects/QuantEconLecturePackages-v0.1.0
  • activate_github("QuantEcon/QuantEconLecturePackages", sha = "0c2985"), which saves that commit to .projects/QuantEconLecturePackages-0c2985

You can also call any of the above with ; force = true, which will force a re-download of the source resources.

There's also a non-exported copy_env(reponame, oldprefix, newprefix) which will let you:

activate_github("QuantEcon/QuantEconLecturePackages")
copy_env("QuantEcon/QuantEconLecturePackages", "master", "mymaster")
activate_github("QuantEcon/QuantEconLecturePackages", tag = "mymaster") # Protected from future updates. 

No GitHub API calls are consumed, so rate-limiting is not an issue