Giter Club home page Giter Club logo

Comments (4)

virtualstaticvoid avatar virtualstaticvoid commented on September 27, 2024 1

Due to the constraints of Heroku, all project files together with the R runtime, configurations and cache directories are all located within the /app directory (which is also the home directory).

image

As a result, when R starts and .Rprofile sources the renv/activate.R script, renv fails while searching through all the R files found within these directories.

Adding a .renvignore file to the project root directory to exclude these directories resolves the issue.

# .renvignore
.cache
R

from heroku-buildpack-r.

virtualstaticvoid avatar virtualstaticvoid commented on September 27, 2024 1

Hi @DaboinCJ

Were you able to run your application with the changes suggested?

from heroku-buildpack-r.

DaboinCJ avatar DaboinCJ commented on September 27, 2024 1

Hi @virtualstaticvoid, thanks for digging deep into this, I appreciate it.

I made the tool work with an init file instead, so I haven't tried that solution yet. I'll try next week.

I bypassed the problem by using the init file again and installing the exact version I needed for a couple of problematic libraries from packagemanager.posit.co.

from heroku-buildpack-r.

virtualstaticvoid avatar virtualstaticvoid commented on September 27, 2024

Hi @DaboinCJ

Apologies for the delay in responding.

Unfortunately, I haven't used recent versions of renv with the buildpack, so I haven't encountered this issue.

Reading the post you linked and follow up comments, the issue seems related to the existence of the renv cache directory.

I'll attempt to replicate the issue and revert back.

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.