question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid cluttering the home directory

See original GitHub issue

Currently the history file is unconditionally written to $HOME/.radian_history. Ideally this should be configurable, but at the very least the default location should follow XDG base dir conventions (i.e. default to$HOME/.local/share/radian/history).

(On macOS there’s an alternative convention to use $HOME/Library/Application Support but from experience applications are split 50/50 about whether they use that rather than XDG, and both are fine.)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
randy3kcommented, Jun 16, 2020

My bad, I am not very familiar with the XDG things, fixed 453e3ff.

1reaction
randy3kcommented, Jun 14, 2020

Future updated.

# where the global history is stored, environmental variables will be expanded
# note that "~" is expanded to %USERPROFILE% in Windows
options(radian.global_history_file = "~/.radian_history")
# the filename that local history is stored, this file would be used instead of
# `radian.global_history_file` if it exists in the current working directory
options(radian.local_history_file = ".radian_history")

— Incidentally, R itself does this badly: you can’t have a custom user profile configuration in addition to directory-local configuration (because R_PROFILE_USER overrides that).

Ahh, good point. radian should load both global and local profiles if they both exist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I'm tired of .folders littering my home directory - Reddit
I'm with you here, home clutter really irritates me and shouldn't be a problem we still have to deal with.
Read more >
Develop on macOS: don't clutter your home folder like I did…
This script solves this problem by recursively searching through the directory and presenting you with the newest 5 files (or directories), so ...
Read more >
7 Organizing Tricks to Prevent Clutter From Piling Up
1. Go Paperless and Use Digital Organization ... Paper contributes to the clutter problem in many homes. The best solution is to go...
Read more >
Clearing accumulated dotfile clutter in $HOME - Ask Ubuntu
Any tips on going through these to avoid inheriting junk from old config, but without losing anything too precious? This will list the...
Read more >
How to Eliminate Clutter So You'll Love Your Space Again
Solution: Avoid zigzag organizing. Scattering your efforts over multiple rooms prevents you from seeing progress. For visible, dramatic results, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found