the code execution cannot proceed because kpathsea631.dll was not found - r

I failed to compile a R Markdown file and the error message is "The code execution cannot proceed because kpathsea631.dll was not found".
I updated the Visual C++ Redistributable and reinstalled R, Rstudio and MiKTeX. All of these methods failed. Could any help me with this?
I am using Win10 system.

I got the same error message using TinyTex instead of MiKTex. Like you, I also deinstalled very much and installed it again but I think basically it is already sufficient to reinstall TinyTex (as long as the error message stems from pdflatex.exe).
So, remove.packages("tinytex"), go to the folder C:/Users/username/AppData/Roaming/TinyTex and make sure you delete/deinstall it as well.
When installing tinytex again, make sure you follow the steps explained here: https://yihui.org/tinytex/

Related

Cannot Install Library

I'm fairly new to R and have never had this issue before. I am running R v4.0.3.
I am trying to install the Tveten/capacc library for R and I am getting the following errors:
Error using install.packages
Error using devtools
I have also been to GitHub, followed the advice there and installed and ran through the source with the same error.
https://rdrr.io/github/Tveten/capacc/
If anyone has any advice, it would be very much appreciated!
EDIT: Changed names of images.

gRrain and Rgraphviz not available in the latest 3.6 R version

after updating my R version to 3.6.1 version - the rGrain and rGraphviz packages do not work. First the error was suggesting that the packages are not writable. However after updating some libraries and trying to source it outside from the BiocManager right now the error appears saying that the compilation fails. Does anybody know how to fix it?
I have already tried multiple options like sourcing it outside and directly from BiocManager and other sources however with no results.
I would appreciate any type of help suggesting how to fix or just install packages gRain and Rgraphviz.
Not writable is biocmanager being poorly programmed and somehow wanting to install some secondary packages into the main R folder in program files, rather than the usual R\win-library\ in documents.
You can workaround that by launching the R console or Studio with administrator privileges when installing/updating.

Rstudio encountered a Fatal Error on startup

I recently upgraded R to 3.4.3 and RStudio to 1.1.383. After installation I got the <p> R encountered a fatal error.</p>The session was terminated bug.
I've followed the instructions here on fixing startup problems, this similar question on stack overflow, and other RStudio support forums and none have been able to fix the error.
My R version is running fine in the terminal and is the most recent version
When I remove the ".rstudio-desktop", ".Rpofile", and ".Rhistory" files and start Rstudio it no longer uses my themes but now encounters a "Fatal Session" bug but when I restart my session it just keeps getting the bug.
I've restarted my computer and re-installed Rstudio with no luck with anything.
I've included a diagnostic report here; there are a decent number of errors but I'm not sure what they really mean.
Any help would be greatly appreciated.
I was able to fix this by deleting the R and Rstudio apps, the R frameworks, and the rstudio-desktop folder and reinstalling both apps.

R Markdown stops working, after installing MRO

I've been building an HTML document with RMarkdown, and everything was going ok, until I installed Microsoft R open (3.3.2) and now everytime I try "Knitr HTML" it returns the following:
Error : .onLoad failed in loadNamespace() for 'RevoUtilsMath', details:
call: NULL
error: To use RevoUtilsMath you must first install the MKL Math Library.
Visit http://mran.revolutionanalytics.com/download.
If you have previously installed the MKL Math Library,
remove it using Add/Remove Programs, then re-install.
Error: package or namespace load failed for 'RevoUtilsMath'
Execution halted
I also re-installed the MRO, just to understand if something went wrong during the installation, and it still returns that error.
I was wondering if someone had the same difficulty and would like to share how to fix this. I have no idea on how installing MRO has such an influence in R markdown.
It looks to me like this isn't necessarily an issue with RMarkdown, but a compatibility issue with RevoUtilsMath and the MKL libraries. It's referenced on the github for RRO (which Microsoft acquired and is now MRO) here:
https://github.com/RevolutionAnalytics/RRO/issues/152
I haven't experienced the error myself, but there is a google group which references and solves that issue here:
https://groups.google.com/forum/#!topic/rropen/jKfR40DcIbE
The third response down is the users solution, and just below that is a microsoft support rep explaining how to properly setup MKL and RevoMathUtils. Hope that helps!

Keep getting errors when trying to knit a PDF using R Markdown

cross-post from /r/RStudio
Hello everybody,
So I've attempted to troubleshoot this issue for about 4 hours last night with no luck. I've looked through all the similar issues in the RStudio community and attempted all the suggested "fixes", but still haven't been able to get this darn thing to work.
Here is link to view the error I am getting:
http://www.r-fiddle.org/#/fiddle?id=ofOOEmKH
I'm aware that it says a latex package is missing, but I can assure you it is not. I made sure to reinstall it using the MIKTEX package manager and it's working just fine.
I also attempted to install the latest version of RMarkdown from github using the devtools package.
I also attempted to install R onto a directory without any spaces in the directory name -- nothing.
Can somebody please help me out here!
For those of you who are having similar issues. I fully uninstalled MIKTEX and reinstalled a complete version of proTeXt (which is basically a full install of MIKTEX plus a LaTeX IDE called TeXstudio) and it fully fixed my issue.
I am now able to compile PDFs through RMarkdown without any issue.
Cheers!

Resources