How can I change R home directory? - r

I need to change the home directory for R / Rstudio, at the moment it works in the OneDrive folder , and it creates problems with sync.
What I would like to change is not just the directory where libraries are installed.
For example, I always get the .Rhistory file in the OneDrive directory, as well as the libraries.
I would like "move" everything to another directory.
I tried with .Renviron file, but it still needs to be placed inside the OneDrive folder, and still I didn't succeed in have evrything moved in another place.
How can I do it?

Related

Atom editor not tracking changes and updating the application

I have been using atom editor for making changes to my application code. I recently made a change in my directory - deleted .git and then moved all my files to a new folder.
Now, when I open the folder in atom editor, I do not see different file colors that I use to. It doesn't track which files have changed or anything like that. When I launch the app locally using MacOS terminal, I don't see the changes reflected in my App.
It's quite strange. What do I need to do to fix this issue?
Here's my root directory in atom. All files appear is same color. something doesn't look right.

Change Jupyterlab startup folder (MacOS: Post Hurricane Catalina)

After updating (Catalina), and reinstalling anaconda3, my new startup folder is the in my users folder, with no way to navigate outside of the users folder. I'm just trying to get a cd directory root so I can navigate to my code files.
I've tried navigating via path (file->open from path, adding in Desktop/) won't navigate there. I've tried navigating directionally out (cd ~/ ) and won't navigate there. I found a post about this, but it's for Windows.
Please help -- this update is ruining my week. Half of my paths are ruined, I'm ready to Time Machine or Ebay this garbage.
I created an alias file and navigated through that to desktop, that works as kinda a strange solution -- basically I alias a folder inside startup folder, and place that on desktop. Only solution I've been able to find, aside from possibly reinstalling from scratch.

Drupal Site configuration issues

Good day every one,
I am new in DRUPAL.
I am having problem with the drupal site.
I got the repository for the drupal site. I have successfully clone it and got every things and the database. I have uploaded the database to the local host server.
Now, I can see that initially the directory is like this
C:\wamp\www\test\site\docroot\sites\default\
Then when i first open the site through local host the directory automatically becomes like this
C:\wamp\www\test\site\docroot\sites\default\file
The "file" directory contains the empty folder of css, images etc/
which I believe is downloaded from the database for the first time.
The site is giving many console error like missing images etc.
Instead of having the empty folder in file directory there must be images and css files and everything I do not know what is wrong becs the folder should not be empty there must be files and and image sand css files and should be downloaded from the database when I first open the site.
Please help me to locate the problem.
Thank you very much.
Usually, you will put on git drupal core, modules and theme files.., basically everything except the files uploaded by user (admin). Those files are usually located at:
/sites/default/files
So, since they are not on git repo you need to copy them to your local environment from the working site (i.e. over (S)FTP).
If your "file" is not "files" dir I'm talking about then it's something specific to your site - don't know nothing about it.

Cygwin: Changes to target files not reflected in hard linked files

I'm using WAMP to develop a small PHP application. I'm also using Cygwin + Oh-My-Zsh to manage my git repository that contains the .html and .php files for the application. My source files exist in a directory outside of the www directory, so I created a hard link via ln to the source files. This appears to work at first, but any changes I make in my working directory are not reflected in the linked files. How do I fix this? I haven't been able to find any information about this particular problem, so any help would be greatly appreciated.

Drupal installing another language

I Downloaded the http://ftp.drupal.org/files/projects/nl-6.x-1.5.tar.gz file from Drupal Translations page. The readme file says to "Copy (merge) the content of this translation package into your Drupal installation root directory".
If i look at the package it has a few text files and a modules, profiles and themes folders. If I copy those in the root (so MAMP/sitename/) it overwrites a bunch of files (there are already modules and themes folders there ...) and whatever page I load on the site gives fatal errors.
Is it possible that on MAMP / Mac Unarchiver doesn't do copy/merge but actually Replaces the old modules folder with this new one?
What should happen, is that the relevant .po files are places in the folders where they should be. If things go wrong, what you'll end up having, would be a folder with all the .po's, in a nested set of folders.
In theory I guess it's possible to overwrite folders etc, but you would be opted to allow that first.
So you shouldn't be afraid that your entire Drupal install will be overwritten. You can just try to do the unpack and see what happens. Worst case, is that you'll need to place the files in the correct folders yourself.
I can't speak to Unarchiver, but if you're overwriting files then something's not behaving correctly. All the translation packs really do is add some additional files and folders (e.g. /modules/user/tranlsations/modules-user.nl.po to /modules/user).
My guess is that your whole /modules/user directory (along with all the others) is being replaced, rather than added to.
Have you tried merging the folders in Terminal? You should be able to merge these folders directly from tar. Comment back if you would like more detailed instructions on how to do that.

Resources