How to reset Atom packages to default - atom-editor

I installed Atom editor again only to see all my old packages I installed 1 or 2 years ago.
How can I remove all packages and start fresh with default package set?
Simply reinstalling Atom doesn't seem to work.
OS: Windows

If you're on windows, my atom seems to be stored at "C:\Users\{user}\AppData\Local\atom". Here I have access to a folder named "packages". Try just deleting that, or checking if the folder gets removed after uninstall

Related

How to uninstall R and RStudio with all packages, settings and everything else?

I messed up something and there is a problem with tidyverse. Tried to find a solution but spend lots of time without result.
How to uninstall R and RStudio with all packages, settings and everything else on Windows. I tried to uninstall through Windows uninstall menu and after I installed R and RStudio again same packages appeared as they were installed before. How can I erase everything related to R and RStudio so I be able to make a fresh install?
I have further issues with the previous answer. For that reason, I have extended the answer with further steps (which I experienced currently) as below:
Run .libPaths() and save the listed directories shown on the RStudio console. In my case, it looks like:
.libPaths()
"C:/Users/%USERNAME%/Documents/R/win-library/3.6"
"C:/Program Files/R/R-3.6.3/library"
Uninstall R for Windows, RStudio and RTools from Windows "Programs and Features" menu. You might navigate there through: Add or remove programs > App & features > On search box
Delete everything in folders that was shown after running .libPaths() instruction in R to know where R packages are installed.
Therefore, I have manually deleted following files and folders (they remain there after full uninstallation of R, RStudio and RTools) as well:
C:\Users\%USERNAME%\Documents\R\
C:\Users\%USERNAME%\Documents\.Rhistory
C:\Users\%USERNAME%\AppData\Local\Temp > only specific ones mentioned below.
Specific ones can be various files and folders which can be deleted under this directory related with R and RStudio sessions. In my case, Rtmpcx1qAZ, Rtmpk7UXWj, Rscript3d2438240e1, ... are only example files or folder names to give you rough idea.
Delete everything inside those listed folders or completely delete those listed folders as well:
C:\Users\%USERNAME%\AppData\Local\R
C:\Users\%USERNAME%\AppData\Local\rstudio
C:\Users\%USERNAME%\AppData\Local\RStudio-Desktop
C:\Users\%USERNAME%\AppData\Local\r-miniconda
C:\Users\%USERNAME%\AppData\Local\r-reticulate
C:\Users\%USERNAME%\AppData\Local\??? (!!!might be some others in your case!!!)
C:\Users\%USERNAME%\AppData\Roaming\R
C:\Users\%USERNAME%\AppData\Roaming\RStudio
Then you can move on the re-installation side for R as below (after suggested reboot of Windows). In order (please):
Download R for Windows, (download RTools if you need) and RStudio Desktop.
Install R (R for Windows)
Install RTools (if you need)
Install RStudio (RStudio Desktop)
Run .libPaths() and save the two directories shown on the console
Uninstall R and RStudio from Windows "Programs and Features" menu.
Delete everything in folders that was shown after running .libPaths() in R.
Delete everything in c:\Users\%USERNAME%\AppData\Local\RStudio-Desktop\
Install R and after Rstudio.
All packages where deleted and I think all Rstudio settings too.

How to change R versions on Mac

I'm trying to use the legacy version of R to run a package on Mac.
On Windows there is a switch in the General tab. However, it is not found on Mac RStudio. I referred to this post: https://support.rstudio.com/hc/en-us/articles/200486138-Using-Different-Versions-of-R
And I do not quite understand the 3 options:
Run the installer from CRAN for the R version you want to be current
List item Use the RSwitch utility available at: http://r.research.att.com/
Update the R.framework/Versions/Current directory alias directly
using ln -s
Especially for RSwitch utility, how do I even open/use that?
Thanks!
This old question is again timely, with the move to R version 4.
There is an RSwitch.app available for MacOS 10.14+ that provides this functionality via a menu bar app. You can choose which of your R builds to use, integrating with the standard Mac GUI and with RStudio. (I've had trouble with the newest Mac GUI not working with R 3.6.3 but RStudio seems to work fine with both that and R 4.0.1 along with this RSwitch.app.) The help pages for Rswitch show what's going on underneath, if you prefer to work via a command line.
If you use a standard .pkg via GUI to install a newer version of R it will effectively forget the other versions. You can use the command
pkgutil --forget (path to package name)
with the .pkg to overcome that. (I've had trouble installing from a tarball instead; might just be my incompetence.) Installing an older version from a .pkg won't overwrite a newer version but in that case it might be safest to omit any attempt to instal older Tcl/Tk and Texinfo, selectable with the "Customize" button at the "Installation Type" stage of the installation. With security settings in MacOS you might have trouble opening some R .pkg files; the awkward workaround is to use Control/right/two-finger click on the file in the Finder, then select ‘Open With’ and ‘Installer’ from the menu that appears.
The version of RSwitch.app noted in the question is still available via a link from this page. This is evidently 32-bit as it is disabled on my Mac under OS 10.14.

Full & complete uninstall QT Creator

Question:
How to uninstall QT Creator from Linux machine?
I have a corrupted install on a Debian Jessie machine. I have tried reinstalling, fixing, etc. and with no luck. I was advised to uninstall completely, grab the newest version and reinstall.
The problem is that I'm not sure how to do this and every time I try, QT keeps coming back with the same exact issues, I'm assuming because of some config files that are not getting deleted in the removal process.
Running qmake --version gives me this output:
QMake version 3.0
Using Qt version 5.6.2 in /home/greg/anaconda2/lib
Running pkg-config --modversion QtCore gives me this output:
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
The problem is that I've got several versions installed, in different folders and I want to completely start over with a fresh install of QT Creator. Version 5.10 was installed yesterday via the QT maintenence tool, but for some reason won't run. I just need to remove it and start over. QT 5.9.3 and 5.10 are installed at /home/greg and you can see 5.6.2 is installed in my anaconda2 folder. Not sure how this happened. I'm still a newb so still learning.
How can I do a complete/full uninstall and removal of ALL QT creator files without deleting other QT files, such as KDE dependencies, etc., so that I can do a fresh install with new config settings????
Qt Creator creates some configuration files and subdirs in ~/.config/QtProject/ (also check ~/.config/Nokia/), which aren't cleaned up by removing the package (in general that's the case with all personal settings in your home directory). Removing them manually should solve that issue, if your diagnosis is right and it's not a more general problem of your system or setup.

Compile an older R version and switch between versions in Ubuntu and RStudio

I just made the switch from Windows to Ubuntu. In windows I had the possibility to change the R version used in Rstudio IDE with Tools -> Global options -> R versions.
This is not possible in Ubuntu in the same way, indeed the R versions menu does not appear in Ubuntu version of RStudio (why??). Could you help me in finding the good solution for switching among different, already installed versions of R, in Ubuntu?
The switch among different versions is important for satisfying packages modifications and making old scripts working.
I apologize was not a great question, but more of the kind: "please help me, I'm desperate, I've loose all my Windows habs!" ;)
So if anyone like me want to make the switch from Windows to Ubuntu here is how you can compile an older R version and switch between versions using RStudio. As already #Andrie commented out here are some informations, however not complete https://support.rstudio.com/hc/en-us/articles/200486138-Using-Different-Versions-of-R.
You already have the R version provided by Ubuntu Software Center or a more recent version but you need an older version to run an old important script?
First you need to compile the desired R version from source. In Ubuntu updating R to a newer version leave you with one only version (the updated ones) and not two the older and the new like in Win.
Let's go to the shell and install all you need to build R from source
sudo apt-get build-dep r-base
to install all libraries you will need for compiling. (look also here http://cran.us.r-project.org/bin/linux/ubuntu/)
Download the version you need on CRAN
/bin/linux/ubuntu/MyUbuntu(trusty,precise,lucid) The archive you
need is something like:
r-base_TheVersionIWant.orig.tar.gz
Extract it in a directory (maybe ~/R)
then (in the shell) enter the top directory of the unpacked archive
then you can read the INSTALL file, and run configure with the --enable-R-shlib option (otherwise you will not be able once compiled to run it in RStudio)
./configure --enable-R-shlib && make
then following the INSTALL file
make check
make pdf
make info
If all was ok, you can tell R studio where find the bin/R file it needs
export RSTUDIO_WHICH_R= myPahtTo/bin/R
and fire rstudio with
rstudio
You have an RStudio version running the desired R Version.
When you will close the terminal and the rstudio session you will come back to the system default version of R. Then repeat just the last two lines to come back when you want.

How to install several versions of R on Mac without overwriting old version?

How do I install multiple versions of R on a Mac without overwriting the old version? Where are the appropriate places to install them?
The most appropriate place would be in the R.framework directory. I have versions dating back to R 2.7 on this machine. Installing of a new version from the binary installation package will not overwrite earlier versions. This is what dragging the symlink "Current Version" folder gives when I drag-drop it into the current console window:
/Library/Frameworks/R.framework/Versions/Current
It's actually a reference to:
/Library/Frameworks/R.framework/Versions/2.15
(This is where the binary installer from CRAN will put successive versions by default if you just click OK to all the dialog boxes during installation.)

Resources