We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1685293 commit 76dcb9eCopy full SHA for 76dcb9e
crates/ark/src/repos.rs
@@ -149,6 +149,18 @@ fn find_repos_conf() -> Option<PathBuf> {
149
if let Some(path) = find_repos_conf_xdg("ark".to_string()) {
150
return Some(path);
151
}
152
+
153
+ // RStudio respects a system-wide repos.conf in /etc/rstudio/repos.conf.
154
+ //
155
+ // https://solutions.posit.co/envs-pkgs/rsw_defaults/#repos.conf
156
157
+ // This isn't strictly XDG-compliant, but we check for it for compatibility.
158
+ let rstudio_etc = PathBuf::from("/etc/rstudio/repos.conf");
159
+ if rstudio_etc.exists() {
160
+ return Some(rstudio_etc);
161
+ }
162
163
+ // No repos.conf file found
164
None
165
166
0 commit comments