I installed Anaconda3 in the default directory : C:\Users\MyUserName
When I am launching Spyder or Anaconda Navigator, Qt is not founded :
Furthermore, conda is not recognized by default in the Anaconda Prompt.
However,conda is recognized if I specify the directory.
It all seems like a PATH variable issue. The thing is, I have created a list of PATH variables in the windows variable manager (My PC -> Properties -> Advanced ...) . I tried a few paths, but it still doesn't work.
Am I missing a PATH variable ?
Can you please also add the following paths:
C:\Users...\Anaconda3\bin
C:\Users...\Anaconda3\condabin
and check if you gain access to the conda command?
I uninstalled Anaconda3, removed all PATH variables related to Anaconda, and reinstalled it with admin privileges on C:\ProgramData.
The problem was the 'รจ' character in my user name.
Related
I have tried 4 times and every time I install R & RStudio, Sys.getenv("HOME") directs to my OneDrive. I don't want anything I do with R to be connected to my OneDrive in any shape or form.
I tried uninstalling and reinstalling R & RStudio, disabling OneDrive, and unlinking my OneDrive from my PC which now uses Windows 11. And HOME still goes to OneDrive.
I never had this problem on my previous machines since OneDrive was never automatically linked in previous Windows OS.
What am I missing? Thank you.
This is simply due to the fact that OneDrive changes the default location of the underlying Windows "personal" directory (i.e. %USERPROFILE%\Documents to %USERPROFILE%\OneDrive\Documents) when using the backup feature.
In R for Windows the default HOME directory (not to be confused with the R_HOME directory, which is the installation directory) is found via the following progression:
If the environment variable for R_USER is set, it is used.
If the environment variable for HOME is set, its path is used.
Lastly, R will search the SYSTEM PATH for system-defined home directories, and on Windows this will default to the "personal" directory mentioned above.
Therefore, to answer your question all you have to do is set a user environment variable for either R_USER or HOME to your default %USERPROFILE% path.
You can accomplish this on Windows natively or use the system's env\Renviron.site file.
I would simply add a user environment variable for R_HOME pointing to your profile's path (i.e. C:\Users\<username>) either via Control Panel > User Accounts > Change my Environment Variables or just try searching for environment from the start menu.
To do via command line/powershell:
CMD:
SETX "R_HOME" "%USERPROFILE%"
Windows PowerShell:
[System.Environment]::SetEnvironmentVariable('R_HOME','%USERPROFILE%', [System.EnvironmentVariableTarget]::User)
Reference:
R for Windows FAQ - HOME and Working Directory
R Installation and Administration Manual
I am new to Version control and this is my first attempt. I am also a novice in R. just did an online course. I have installed Git and was trying to add the Version control through Rstudio Global options. The Git executable file path shows "user/bin/git" But when I go to create a Project>version control>Git- I get an error "Git was not detected on the path" I dug deeper and ran cmd in the mac terminal- which git and got the location as "/usr/local/bin/git", I also did a $ git --exec-path and got the location as "/usr/local/Cellar/git/2.30.0/libexec/git-core" I understand the executable path is somewhere else. I understand that I need to change the path but Rstudio is not allowing the changing of the path, and I am unable to edit the path to "/usr/local/Cellar/git/2.30.0/libexec/git-core" from "user/bin/git". I tried manually entering but that doesnt work, I browsed through the file s and sub folders and selected the executable file location , but it still doesnt change. Please help.
Welcome to stackoverflow: You can find a step by step support on the official support site of rstudio. Here you get detailed instructions on how to use version control with RStudio: https://support.rstudio.com/hc/en-us/articles/200532077-Version-Control-with-Git-and-SVN
I want do build a dll file and later use this functionality with dyn.load(). So, I run R CMD SHLIB my_code.c in the command line.
Rtools default directory is c:\Rtools. When installed here, it works fine. The windows environment path has the following entries:
c:\Rtools\bin;c:\Rtools\mingw_64\bin;K:\sw\R\R-3.4.1\bin\x64
This is the recommended path as in Appendix D from the R Installation and Administration manual (https://cran.r-project.org/doc/manuals/r-devel/R-admin.html).
But in my PC I like to install software in another place. But then, Rtools just does not work. Of course, I update the PATH variable, but even so.
K:\sw\Rtools\Rtools34\bin;k:\sw\Rtools\Rtools34\mingw_64\bin;K:\sw\R\R-
3.4.1\bin\x64
When I install Rtools in another place that is not c:\Rtools (like the above path), it reports
c:/Rtools/mingw_64/bin/gcc: not found
So, although I have change the path variable, it still wants to find Rtools in the default directory.
Is it possible to change the default directory of Rtools?
I have a problem with R, I haven't experienced before. Before writing here I checked the forums but couldn't solved my problem. I saw somebody experiencing this problem.
First, I use Ubuntu 16.04 and R 3.4.1 (Single candle). But I can not install any packages. First it said the directory is not writeable and if I want to create a personal library?
lib = "/usr/local/lib/R/site-library"' is not writeable Would you like
to use a personal library instead? (y/n)
I couldn't :( I checked forums another option was changing permission, i coded:
1. cd /usr/local/lib/R
2. sudo chmod o+w site-library
3. ls -l but it didn't work.
When I want to download a package, it installs it at /tmp folder. And i can not use it, cause when i want to open it with "library()" it says there is no package like that. I copied the package from the /tmp folder and pasted it to the folder other packages are (i didn't installed them by myself, they were there) but still it doesn't recognize the package.
I didn't experienced this with my windows pc, and a friend with Ubuntu said he is usind R and Rstudio without problem. So what is wrong with mine :( ???
The problem is that r or rstudio doesn't have permission to write inside theses directories.
You should change your R_LIBS for a local directory, take a look in /etc/R/Renviron.site and uncomment the R_LIBS line or define it if needed.
Check if a R folder exists in your home like this ~/R/x86_64-pc-linux-gnu-library/3.4, it should be your R_LIBS address. If it doesn't exist you can create one like ~/R/library/ and define the same in Renviron.site.
More information, check here or help(Startup).
I think I tried everything on my Win7 64 machine but still got this error.
Run installer (Qt_SDK_Win_offline_v1_2_en.exe) as administrator in compatibility mode on XP SP2.
Include the directory containing nmake and cl into system path
reinstall it about 10 times without success.
I verified that the installer worked fine with a Win32 machine.
What else can I try to make this installed without an error?
UPDATE: I just gave up the SDK and downloaded library only. It worked without any problem.
The problem might be how you defined the environment variable.
If you notice the path in the error message, it contains double slashes before the bin directory: harmattan_10.2011.34-1\\bin and this is a problem on Windows.
You also can't have both \ and / defining a path. Use \ only.