Giter Club home page Giter Club logo

Comments (13)

bwarren2 avatar bwarren2 commented on May 27, 2024

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
Running R attached to terminal... up, run.1017
bash: R: command not found

I'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.git

And .buildpacks

https://github.com/virtualstaticvoid/heroku-buildpack-r.githttps://github.com/heroku/heroku-buildpack-ruby.git

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 loaded

  • DONE (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 loaded

  • DONE (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.

aj0strow avatar aj0strow commented on May 27, 2024

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.

bwarren2 avatar bwarren2 commented on May 27, 2024

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
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


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-21690035
.

from heroku-buildpack-r.

bwarren2 avatar bwarren2 commented on May 27, 2024

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
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


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-21690035
.

from heroku-buildpack-r.

aj0strow avatar aj0strow commented on May 27, 2024

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.

aj0strow avatar aj0strow commented on May 27, 2024

Is there a way to add ./vendor/R/bin to the path?

from heroku-buildpack-r.

bwarren2 avatar bwarren2 commented on May 27, 2024

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.

aj0strow avatar aj0strow commented on May 27, 2024

No worries, I'll take it from here. Thanks so much @bwarren2!

from heroku-buildpack-r.

aj0strow avatar aj0strow commented on May 27, 2024

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.

bwarren2 avatar bwarren2 commented on May 27, 2024

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.

virtualstaticvoid avatar virtualstaticvoid commented on May 27, 2024

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.

virtualstaticvoid avatar virtualstaticvoid commented on May 27, 2024

See ddollar/heroku-buildpack-multi#5 for more details.

from heroku-buildpack-r.

aj0strow avatar aj0strow commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.