Error when trying to build Rmarkdown site - r

I am trying to build a rmarkdown site for a final class project. I am getting an odd error in the build window. I reinstalled stringi and made sure it was installed/loaded. Any ideas on how to get a round this? I am currently using version 1.24 of stringi in MacOS.
Please let me know if you have any questions.
Code & Error:
==> rmarkdown::render_site(encoding = 'UTF-8')
Error in library.dynam(lib, package, package.lib) : shared object
'stringi.so' not found Calls: ... tryCatch -> tryCatchList
-> tryCatchOne -> Execution halted
Exited with status 1.
--Cheers.

I had to delete the package and then reinstall it with the following contingencies.
install.packages("stringi",type="mac.binary")

Related

Error when executing R script from Command prompt

I am trying to run R script that works fine when running in Rstudio in command prompt, the reason why is that later I want to run it in Talend ETL tool.
However when I run it in command I obtain the following error:
Error in contrib.url(repos, "source") :
trying to use CRAN without setting a mirror
Calls: install.packages -> contrib.url
Execution halted
Any idea how to solve that?
Note: I tried to install the packages contrib.url or contriburl but it is not compatible with my version of R.
Thanks.

I keep getting a knit error with my markdown file in R

I am receiving this error when trying to knit my R markdown sheet
Error in contrib.url(repos, "source") : trying to use CRAN without setting a mirror calls: ... withVisible -> eval -> eval -> install.packages -> contrib.url Execution halted
Does anyone have any experience with this?
Without the exact code, it is difficult to assess the problem. However, as #NelsonGon writes, this is usually the error from running an installation (install.packages() inside a chunk.
Instead, the library should be installed beforehand and loaded with library(example) inside a chunk to make it available for the markdown environment.

deploy shinyapp.io shows error that can't find package on github

I write a package on github and a shiny app, I want to use shinyapp.io to run it.
But when run command deployApp(), error message shows :
"The application failed to start (exited with code 1).
Error in value[[3L]](cond) : there is no package called ‘xxxxxx’
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted"
the package is on github but not on CRAN.
Using the RStudio functionality I got it to work. Initially I had trouble installing the dotaRecord package but once installed the publish button worked fine.

Radiant R not working on shiny server

As per given instruction on the website, I installed the Radiant package on Ubuntu server with the following command.
install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/")
Then cloned the repo from here and placed it in the /srv/shiny server/ folder of shiny server.
I can run radiant from addins and from within RStuodio, however as soon as I point my browser to ipaddress:3838/inst/app I get the following error in the browser.
An error has occurred
The application failed to start.
The application exited during initialization.
The shiny server log produces the following error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘shiny’ 0.14.2 is already loaded, but >= 1.0 is required
Calls: runApp ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
I checked the shiny version, it is indeed the latest version, I'm not able to identify the problem, any help.
Like i mentioned in the comments, often it helps to install the package outside R (from command line). If you have the package locally available you can use R CMD INSTALL shiny_1.0.3.tar.gz. If you dont have it locally available you could download it with e.g wget from https://cran.r-project.org/src/contrib/shiny_1.0.3.tar.gz.
It´s been a while so I wonder if you fixed the issue in any case there are some new versions of the package that might help. I suggest the following:
Follow the most up to date version at http://vnijs.github.io/radiant/
Try installing directly in the R console without going inside Rstudio o Rstudio server.
Hope that helps!
Cheers!

LyX 2.1.1 fails to compile knitr-manual.lyx

LyX 2.1.1 fails to compile knitr-manual.lyx and knitr-graphics.lyx as well (currently installed knitr version 1.6).
The error does not say much (i.e. LyX: Cannot convert file -- see screenshot). Could it be related to file-permission bits? How should I go about it?
Maybe of interest,
Sys.getlocale()
[1] "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=C;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C"
Update
From the message pane, there is indeed an Error line:
12:28:16.235: Quitting from lines 93-93 (/tmp/lyx_tmpdir.gwIlgToM2017/lyx_tmpbuf1/knitr-graphics.Rnw)
12:28:16.238: Error in loadNamespace(name) : there is no package called 'Cairo'
12:28:16.241: Calls: knit ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
12:28:16.244:
12:28:16.247: Execution halted
No cairo? What does this mean in the contect of knitr and LyX/LaTeX?
R was missing the "Cairo" package. And the "tikzDevice" package as well. Installing those two, via
install.packages("Cairo", dep = TRUE)
install.packages("tikzDevice", dep = TRUE)
resolved the issues. At least, there is no compilation error related to missing packages anymore.

Resources