-
Notifications
You must be signed in to change notification settings - Fork 24
Using private libraries in cloudml_train #171
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
Comments
@kevinushey might have some thoughts, in the meantime, since install.packages("myownlib.tar.gz", repos = NULL, type="source")
# .... your existing code .... |
Oh, thats a good idea. It means the library is not installed and cached
beforehand, but at long as I'm only using a few lightweight libraries it
shouldn't affect runtime too much. I'll give this a try. Thanks!
…On Fri, Jun 15, 2018, 12:05 PM Javier Luraschi ***@***.***> wrote:
@kevinushey <https://github.com/kevinushey> might have some thoughts, in
the meantime, since cloudml copies all the contents of your local
directory, you could build your private library and save the .tar.gz file
in the same folder where your train.R file is located. cloudml will
upload this package for you, then you could try installing the package from
source by adding to the header of train.R something like:
install.packages("myownlib.tar.gz", repos = NULL, type="source")
# .... your existing code ....
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHwN18jUQg8hlscT8tFY6-tmAnOpdomZks5t89tmgaJpZM4UoAEY>
.
|
Any news on this issue? I have tried to add the package and install as suggested, but get the error message:
Solved the issue with activating packrat for the project myself and following this post: |
It turned out that by using I solved the issue by allowing to add the private package to a IGNORE list that was empty so far. See the pull request for details. |
@fmannhardt 2020-02-09T09:30:49.407953977Z master-replica-0 Installing latticeExtra (0.6-29) ... I master-replica-0 I would have thought that cloudml only uploads stuff within the directory where the training script is located and will install the required R packages in the cloud. many thanks |
Hi - thanks for this great package! Is there any way to use a private libraries in a training script sent to
cloudml_train
? For example in my train.R fileI'm hoping I would be able to point the training function to an archive stored on googleCloudStorage. For example:
With the idea that packrat would know to look there for libraries it couldn't find on CRAN.
Is this feasible? Happy to help out if I can.
The text was updated successfully, but these errors were encountered: