How to resolve the access is denied error in RStudio? - rstudio

I just installed RStudio on a new desktop PC that has Windows 10 installed. Then I synced my OneDrive to this PC and opened a RStudio project which is in OneDrive. Whenever I click on a script file to open it from within RStudio, I see the following error:
What I tried
I have tried pausing OneDrive and reopening RStudio but get the same error. Please guide me on how to fix this.

This was a OneDrive issue. By unchecking the last option in the settings (shown below), all the files were downloaded. Now I can open the script files in RStudio.

Related

VS code Hidden folder permission denied

Visual Studio code is not able to open files or folder within hidden folders. If I go to the file within the hidden folder .sfdx and try opening the file sfdx-config.json then Vs code opens with below error
{"name":"sfdx","hostname":"blr-ffefe","pid":21322,"log":"Login","level":50,"msg":"[\n 'ERROR running auth:web:login: ',\n "EACCES: permission denied, open '/Users/usernname/.sfdx/sfdx-config.json'"\n]","time":"2022-04-07T08:58:22.413Z","v":0}
I have also removed all the files.exclude , this is happening in Mac OS Monterey.
Steps to reproduce :
Mac OS Monterey
navigate the hidden folder
right click on any file within the hidden folder and select open with Visual Studio Code
Looks like you can solve this problem by creating a hidden folder
(with .) and a hidden file using the VS Code itself. By using file -> Open -> create any hidden folder/file in the open window.

Can't download Visual Studio Installer

I am trying to install the Visual Studio Community Edition.
Unfortunately the Installer can't be downloaded. When I look at the logs I get the following messages:
[12/17/2020, 10:31:35] The entire Box execution exiting with result code: 0x0
[12/17/2020, 10:31:35] Launched extracted application exiting with result code: 0x138b
The bootstrapper can't access the file at C:\ProgramData\Microsoft\VisualStudio\Packages_bootstrapper\vs_installer\sjbe34w.nig and throws a System.UnauthorizedAccessException.
I allready tried, deleting the Packages Folder and clearing the Temp Folder and running the install-programm as administrator. I also allready cheked my Windows Managment INtrsument in services.msc, and it is running and starts automatically. As I am installing Visual Studio on a computer from my work place I can't stop the antivirus-software.
The permissions on the Package-Folder should actually allow the Software to access it, so I'm confused.

Opening visual studio solution from a linux drive

I just upgraded from Win7 to Win10 and I noticed the following change, that I don't explain for now.
I used to checkout my source code on in a mounted linux drive (\myremote\myaccount\ as X:)
before I was able to open visual studio 2008 solution (.sln file) and build but since the upgrade to Win10, devenv fails when I double click on a sln, saying that:
The following files were specified on the command line:
X:\blahblah\myproject\myproject.sln
These files could not be found and will not be loaded
but I can open and save that sln file using a text editor.
Note that my devenv run as Administrator.
Any idea ?

Visual Studio issues installing/updates/corrupted files

I have a huge problem with Visual Studio 2015 and I can not resolve it.
I need it for school and I've tried almost everything what I've found on the internet but with no results.
So, I have to install Visual Studio 2015. When I try to install it, it says that I have to install kb 2919355 update. I downloaded it from Microsoft site but it gives me the error that
"This update is not applicable to your computer".
I checked that error more carefully and I found out that I need to have installed update kb 2919442 to allow update kb 2919355 to be installed on my pc.Btw, I have a Lenovo G500, Windows 8.1 Pro N
Again, I downloaded from Microsoft the update kb 2919442 but it gives me the same error:"This update is not applicable to your computer".
I enter on every page that I found related to my problem but with no result.
http://answers.microsoft.com/en-us/windows/forum/windows8_1-update/cannot-install-kb2919442-because-it-is-not/37aa4487-5304-49b2-af18-327dfe760753?tab=question&status=AllReplies&auth=1#tabs
I assumed that I have a corrupted file.I followed the steps presented on the link below, I run sfc /scannow and I found some corrupted files that it couldn't be resolved.The file was: CNBJ2530.PNB.So I tried to check my friends' computers for the same version as I have and to copy the good file in my computer.
My mother's computer has no issues so I copy in a USB her good file, I copied then in my computer and I did the takeown, icacls, and copy commands to overwrite my bad file with the good one.The transition was done, I restarted the computer but when I run again sfc /scannow it gave me again "Windows couldn't resolve the corrupted files that are in your pc......" and I found out that again that file CNBJ2530.PNB is corrupted.
So I didn't make something well.My corrupted file was at the address:
C:\Windows\System32\DriverStore\FileRepository\prncacla.inf_amd64_95d0460bc8b6fae8\Amd64
So I run the commands:
takeown /f C:\Windows\System32\DriverStore\FileRepository\prncacla.inf_amd64_95d0460bc8b6fae8\Amd64\CNBJ2530.PNB
icacls C:\Windows\System32\DriverStore\FileRepository\prncacla.inf_amd64_95d0460bc8b6fae8\Amd64\CNBJ2530.PNB /GRANT ADMINISTRATORS:F
and I have created a new folder in windows folder from c and I put there my mom's file copied from usb and I run the command:
copy C:\Windows\cnb\CNB_0428.GPD C:\Windows\System32\DriverStore\FileRepository\prncacla.inf_amd64_95d0460bc8b6fae8\Amd64\CNBJ2530.PNB
I don't know why it has changed the name of the file in CNB_0428.GPD.
What's going on and what I didn't do well?
I have to say that I have installed my windows recently but I have installed the same windows on my mother's computer and she doesn't have corrupted files and another thing, one of my friend has installed Visual Studio and she also have the some corrupted files as I have and she could installed it.
I really don't know what to do, please if someone has encountered this problem share with me.

How can I know tesseract has been set up successfully

I set up my tesseract 3.01 in visual studio 2008 according to http://code.google.com/p/tesseract-ocr/wiki/ReadMePre3
No errors report in compilication.
Then a console command window saying clustering flash by, then disappear.
If I have successfully installed it, where should I put tesseract examples? Is it Ok to put them under the vs2008 folder?
Can anyone send me an example?
After checking out the complete source from Tesseract SVN repositoty, open tesseract solution from vs2008 folder, select LIB-Release configuration, and build. The .exe output files can be found in vs2008\LIB_Release folder. You can move them to the parent folder of vs2008, where there are some sample images and tessdata, open a command prompt, and run your test from there.
tesseract phototest.tif out

Resources