Comments (15)
@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.
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.
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.
"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.
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.
Go to ‘Help’ menu, under ‘Diagnostics’ is ‘Edit User Prefs File’.
from spades.project.
Alternatively, if you are on Linux, edit ~/.config/rstudio/rstudio-prefs.json
directly.
from spades.project.
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.
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.
Why is it in .Rprofile
? How did that get there?
from spades.project.
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.
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.
per the links above: they have hardcoded exclusions in the Rstudio source code. But the prefs.json workaround does work.
from spades.project.
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.
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)
- store previous libPaths in the object output by setupProject()
- checking absolute paths
- 2 different `data.table`-related errors HOT 6
- `setupSideEffects` and `setupOptions` have the same description HOT 1
- `setupProject` examples have an error? HOT 1
- `setupProject(..., Restart = TRUE)` creates RStudio project, but `setupProject(..., Restart = FALSE)` doesn't HOT 2
- strange output/behaviour when `setupProject(..., verbose = 2)` HOT 1
- Object missing from output of `setupProject`: partial matching issue? HOT 2
- `setupProject(..., sideEffects)` documentation seems circular and may ned more detail HOT 2
- separate `setupProject` documentation from `setupStudyArea` and other "inner" funtions
- setupProject is not finding the url although it can be opened in the browser HOT 1
- `Error in (function (nam) : argument "valObjName" is missing, with no default` HOT 2
- The main project is not being set up properly as a git repo when using `useGit="Sub"`. HOT 4
- Pkg installation issues HOT 2
- `tools::file_ext(modules)` returns "R" not ".R"
- `parseFileLists` can't find `defineModule()`/`defineParameter()` but they are there? HOT 3
- `setupModule` with GitHub .R file - errors are misleading and module ends up in "wrong place" HOT 3
- Issue using `setupProject` to prepare for spades workshop HOT 10
- Can no longer pass a `list` to modules HOT 1
- Fix messaging for downloaded module paths
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 spades.project.