Code Monkey home page Code Monkey logo

Comments (15)

achubaty avatar achubaty commented on July 24, 2024

@eliotmcintire from comment in the issue linked above:

I had success setting files to ignore with the file_monitor_ignored_components setting in rstudio-prefs.json.

This seems to be working...I've added the following, but note this is user level setting, not project level.

    "file_monitor_ignored_components": [
        "data/",
        "inputs/",
        "packages/"
    ]

from spades.project.

eliotmcintire avatar eliotmcintire commented on July 24, 2024

I is not quite a user level setting, sadly. It is a user session level setting. So, it has to be reset for every project.

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

Not true. If it's not sticking, you likely missed a comma or something in the prefs list. It's persisting across sessions for me.

from spades.project.

eliotmcintire avatar eliotmcintire commented on July 24, 2024

"session" means "project". So if you start a new project, you have to reset this. It must be in the project folder.

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

No, it persists across sessions and projects. This is a user level setting. I’ll post screen shots showing how to set it.

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

B0E733F8-0E04-44B0-B88D-10C25A557745

Go to ‘Help’ menu, under ‘Diagnostics’ is ‘Edit User Prefs File’.

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

Alternatively, if you are on Linux, edit ~/.config/rstudio/rstudio-prefs.json directly.

from spades.project.

eliotmcintire avatar eliotmcintire commented on July 24, 2024

Either this does not work on Windows, or I am unable to follow instructions. Either way, this mechanism is either difficult or not viable as a means of a Windows machine to avoid monitoring every file in the packages folder. In a new project, please allow the packages folder to be outside the Rstudio project.

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

I've confirmed it does work on Windows.

You can use another directory. Simply update it in .Rprofile, and possibly the top of 00-global.R.

But I will add an argument to allow passing a custom package directory.

from spades.project.

eliotmcintire avatar eliotmcintire commented on July 24, 2024

Why is it in .Rprofile? How did that get there?

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

That's the mechanism to set the lib paths when the project is opened. It's the same mechanism as packrat/renv.

from spades.project.

eliotmcintire avatar eliotmcintire commented on July 24, 2024

Since I don't use those 2 packages (they have never worked when I tried them, plus they took a long time to set up), I cannot report whether Rstudio becomes unresponsive due to those packages. If those packages do make RStudio unresponsive, then lets not copy that! If they don't make RStudio unresponsive, then we have to figure out how they do it.

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

per the links above: they have hardcoded exclusions in the Rstudio source code. But the prefs.json workaround does work.

from spades.project.

eliotmcintire avatar eliotmcintire commented on July 24, 2024

Since this is not a simple workaround (i.e., you have to understand json language a little bit, find a hidden folder, find an editor that works reliably -- the Rstudio one that opens when I follow the photo above is very buggy and doesn't show keystrokes on my machines, and make no syntax errors or else the changes are wiped with no error message) , I think it is very important that the default package location not be inside the package, unless there is way for the SpaDES.project to change the prefs.json file. I believe it is not sensible to create an unresponsive Rstudio environment by default.

from spades.project.

achubaty avatar achubaty commented on July 24, 2024

I agree that Rstudio's behaviour is obnoxious in this regard.

So what would be a good default location? <projectName>_packages/ in the project's parent directory?

I'll implement this to start and we can see how it goes.

from spades.project.

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.