How to dev a local package in Julia? - julia

I am reading through the docs for working with local packages and it is unclear as to what syntax I would use to add a locally developed package. My package currently has a git repo but I want to point the dev version to the local copy as the one on git is not up to date. I read the docs here: https://pkgdocs.julialang.org/v1/managing-packages/#Adding-a-local-package but they do not specific the syntax to use. I tried something like:
mypackage) pkg> dev /Users/myuser/Desktop/mypackage
ERROR: package `mypackage [6b2b467d]` has the same name or UUID as the active project
Is this the right syntax or am I missing something?

It turns out that you can't dev the package locally if it is already activated. I switch to my default 1.6 environment and:
(#v1.6) pkg> dev /Users/myuser/Desktop/mypackage
worked!

Related

Is it possible to install specific version of scala via rscala::scalaInstall()?

Is it possible to install specific version of scala via rscala::scalaInstall() ?
Currently it installs 2.12.1 which my project doesn't support yet.
I'm also ok with installing 2.11.8 manually but then it's unclear to me how to point R to it. Shall I add SCALA_HOME env var to script that launches RStudio or is there better way ?
Just make sure to add scala to your path and you should be fine.
Source: https://cran.r-project.org/web/packages/rscala/README

Develop and Debug Atom Package

I have just began working on Atom.io Package development, and based on this tutorial, have learnt from how to create package development skelton file to how to publish your package.
However, I do not know how to check/debug/develop your package. I know I can use Jasmine via alt-cmd-I or Developer Console (for Atom is based on Chromium), still if you want to check the behavior of your package, do I have to re-publish or install your package manually every time?
When working on packages locally, here's the recommended workflow:
Clone your package from GitHub using apm develop <package-name>. This will clone the package's repo to your local ~/.atom/dev/packages/<package-name>
cd into this directory
Start Atom in this directory using atom -d .
Now you can work on the package, make changes, etc. Once you're ready to reload, you can use View > Developer > Reload Window to restart Atom with the changed package.
If you have your package sources locally on your machine, you can skip the first step (apm develop) and simply create a symbolic link from your sources to ~/.atom/dev/packages/<package-name.
Already have a local repo of the package?
To add to nwinkler's answer, if you already have a repo of the package locally, you can use
apm link --dev
to automatically create a symbolic link to the ~/.atom/dev/packages/ directory.
Make sure to completely restart atom in developer mode with
atom -d
or in View > Developer > Open In Dev Mode...
If you just want to use a local package (not in dev mode), you can use apm link directly. And apm unlink to remove the symbolic link to ~/.atom/packages.

How To modify quantmod package with GIT

I currently have quantmod installed. I would like to modify the source code.
Do I need to uninstall the current version?
I currently was trying
(1) Installed GIT
(2) then I went to New Project>> Version Control >>create a new project form version control GIT and when I click that I get this error
"Git was not detected in the system path. to create projects from GIT repositories you should install GIT and then restart Rstudio. Not tha tif GIT is installed an not on the path then you can specify its location using the options dialog."
(3) So I went to the global options>>GIT/SVN>>Git executable and put this path
C:\Users\me\AppData\Local\Programs\Git\bin\git.exe
(4) then I restarted RSTUDIO and now I get further so when I go to
New Project>> Version Control >>create a new project form version control GIT>>CLONE GIT REPISITORY
Here it asks for a Repository URL, Project Directory name, and Create project as subdirectory of. Here is where I am unsure where I need to put this project so that the modification I make to the quantmod package will be picked up by my version of R
For Repository URL I was going ot put:
https://github.com/joshuaulrich/quantmod
For Project Directory I am unsure: can you advise??
For Create project as sub directory I am unsure: can you advise??
My R libraries are here: C:\Users\me\Documents\R-3.1.2\library
Also currently I have quantmod installed here:
C:\Users\me\Documents\R-3.1.2\library\quantmod
Do I need to uninstall that current version?
Appendix:
On My computer GIT is here: C:\Users\Me\AppData\Local\Programs\Git
On My computer R is here: C:\Users\Me\Documents\R-3.1.2
The project directory is just the name of the folder you will be putting the repo inside. Generally it is the name of package to make things clear. In your case quantmod.
The sub directory you can ignore unless you want to choose some other location (besides the current directory) for you code.
You don't need to uninstall the current version. My usual recommendation is to just increment the subversion of the package in the DESCRIPTION file. For example, increment:
Version: 1.0.1
to
Version: 1.0.2
Now when you rebuild and install you will have the new version. If you need the original again, you can just reinstall the old one (i.e. install.packages). Having both installed at the same time would likely result in conflicts between the packages and just causing a headache.

Meteor changing package name with colon to suit Windows

I used to develop meteor app using Mac. I have written package for app with name foo:bar and package is under packages/foo:bar
This week meteor team has officially released metero.js for Windows. Cloning the the git repo to windows is failing because of colon : in the directory name.
Is there any official way to migrate/rename package directory name in Mac so that it works properly across all operating system.
You can name the package folder anything you want. In the package.js file under the Package.describe method, use foo:bar as the name instead.
Meteor will use this as the name of the package instead of the name of the directory containing the package thereon.

what repository does sbt 0.13.7 reside in?

I'm apparently missing a repository because when I specify sbt version 0.13.7 I get
org.scala-sbt#sbt;0.13.7: not found
I'm using Artifactory locally to cache all my dependencies, and I need to add the correct repository to my Artifactory.
It also fails to find 0.13.6 but it works with 0.13.5 so I must have already downloaded that version on to my local machine.
We're still working on moving this into scala-sbt.org, but you can find the artifactory instructions we worked up with JFrog here: https://docs.google.com/a/typesafe.com/document/d/18fGjMz21J4-JMHXfDH4OyGOXu8NvWfsG4q83S9RT64M/edit
Oh, and the repository is repo.typesafe.com/typesafe/releases (but as an ivy repository)

Resources