Comments (13)
Try heroku run bash and an R invocation there.
On Jul 28, 2013 12:03 PM, "AJ" [email protected] wrote:
Hello, followed the instructions, pushed to Heroku and saw this (full
output below):R 2.15.1 successfully installed
All well and good, except:
$ heroku run R
RunningR
attached to terminal... up, run.1017
bash: R: command not foundI'm on the cedar stack-
$ heroku stack
=== mcgill-steam Available Stacks
bamboo-mri-1.9.2
bamboo-ree-1.8.7
- cedar
I'm using both ruby and R buildpacks:
$ heroku config
BUILDPACK_URL: https://github.com/ddollar/heroku-buildpack-multi.gitAnd .buildpacks
Any suggestions would be much appreciated. I'm a ruby developer and this
is my first time ever hearing about R so I'm not sure how to troubleshoot!
Full output from heroku push (right before ruby buildpack installation).
-----> Fetching custom git buildpack... done
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/virtualstaticvoid/heroku-buildpack-r.git
=====> Detected Framework: R
Vendoring R 2.15.1
Downloading and unpacking R binaries
Executing init.r script
trying URL 'http://cran.fhcrc.org/src/contrib/e1071_1.6-1.tar.gz'
Content type 'application/x-gzip' length 258910 bytes (252 Kb)opened URL
downloaded 252 Kb
installing source package 'e1071' ...
** package 'e1071' successfully unpacked and MD5 sums checked
** libs
installing to /app/vendor/R/lib64/R/library/e1071/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loadedDONE (e1071)
Updating HTML index of packages in '.Library'
Making packages.html ... done
trying URL 'http://cran.fhcrc.org/src/contrib/rpart_4.1-1.tar.gz'
Content type 'application/x-gzip' length 813735 bytes (794 Kb)opened URL
downloaded 794 Kb
installing source package 'rpart' ...
** package 'rpart' successfully unpacked and MD5 sums checked
** libs
installing to /app/vendor/R/lib64/R/library/rpart/libs
** R
** data
** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loadedDONE (rpart)
Updating HTML index of packages in '.Library'
Making packages.html ... done
R 2.15.1 successfully installed
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
=====> Detected Framework: Ruby/Rack
-----> Using Ruby version: ruby-1.9.3
...—
Reply to this email directly or view it on GitHubhttps://github.com//issues/14
.
from heroku-buildpack-r.
Thanks @bwarren2 , unfortunately no dice
$ heroku run bash
Running `bash` attached to terminal... up, run.7304
~ $ R
bash: R: command not found
It's really just not coming up!
~ $ compgen -ac | grep R
predict.R
svmModel.RData
trainModel.R
README.txt
from heroku-buildpack-r.
What do you get from find -type f -name R in bash on heroku?
On Jul 28, 2013 1:11 PM, "AJ" [email protected] wrote:
Thanks @bwarren2 https://github.com/bwarren2 , unfortunately no dice
$ heroku run bash
Runningbash
attached to terminal... up, run.7304
~ $ R
bash: R: command not foundIt's really just not coming up!
~ $ compgen -ac | grep R
predict.R
svmModel.RData
trainModel.R
README.txt—
Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-21690035
.
from heroku-buildpack-r.
Alternatively, what is in your /app/vendor on heroku?
On Jul 28, 2013 1:15 PM, "Ben Warren" [email protected] wrote:
What do you get from find -type f -name R in bash on heroku?
On Jul 28, 2013 1:11 PM, "AJ" [email protected] wrote:Thanks @bwarren2 https://github.com/bwarren2 , unfortunately no dice
$ heroku run bash
Runningbash
attached to terminal... up, run.7304
~ $ R
bash: R: command not foundIt's really just not coming up!
~ $ compgen -ac | grep R
predict.R
svmModel.RData
trainModel.R
README.txt—
Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-21690035
.
from heroku-buildpack-r.
Alright!
~ $ find -type f -name R
./vendor/R/bin/R
./vendor/R/lib64/R/bin/exec/R
./vendor/R/lib64/R/bin/R
Thanks so much:
~ $ ./vendor/R/bin/R
> q()
from heroku-buildpack-r.
Is there a way to add ./vendor/R/bin to the path?
from heroku-buildpack-r.
Config variables (herokue config:set) or something else I do not recall the
exact details of; I remember setting up some stuff when I was getting it
working, but I am away from my machine. Trying config, and if you need it
I will check my settings later today or tomorrow morning.
On Jul 28, 2013 1:36 PM, "AJ" [email protected] wrote:
Is there a way to add ./vendor/R/bin to the path?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-21690504
.
from heroku-buildpack-r.
No worries, I'll take it from here. Thanks so much @bwarren2!
from heroku-buildpack-r.
Setting the path as follows worked:
$ heroku config:set PATH=vendor/R/bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
from heroku-buildpack-r.
Perfect.
On Jul 28, 2013 2:49 PM, "AJ" [email protected] wrote:
Setting the path as follows worked:
$ heroku config:set PATH=vendor/R/bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-21691850
.
from heroku-buildpack-r.
There is an issue with heroku-buildpack-multi
with environment variables. So you will see in my example install file, I explicitly set them again after the initial push.
from heroku-buildpack-r.
See ddollar/heroku-buildpack-multi#5 for more details.
from heroku-buildpack-r.
@virtualstaticvoid surprising that issue is still around a year later eh. You certainly do fix the path in the example too, missed it :( sorry
from heroku-buildpack-r.
Related Issues (20)
- I would really appreciate a walkthrough for a regular R user HOT 3
- renv 12 in my renv.lock file breaks the 'compilation' HOT 5
- GPG error HOT 3
- Rplumber test application delivers error HOT 5
- Increasing timeout HOT 1
- Support heroku-20 stack HOT 1
- Building with dokku HOT 2
- IsoSpecR not installed
- Skip BUILD_DIR to /app rsync when building in /app
- There is no package called 'renv' HOT 2
- Multiple-app hosting unavailable HOT 6
- Timeout when installing HOT 3
- Slow build time - Caching issue? HOT 2
- Authentication/Browser Problem when deployed. HOT 7
- Add Support for Heroku-22 HOT 9
- Add telegram.bot example and default packages HOT 6
- Use reticulate package HOT 1
- Aptfile installation fails HOT 1
- Could I use cloud native build packs? HOT 2
- renv 1.0.2 Error in if (n == 1) word else paste(word, "s", sep = ""): app[web.1]: the condition has length > 1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-r.