BERT not showing R shell in console - r

I have a question regarding to BERT, because it doen't show me the R shell in the console. I only see the 4 scripts (preferences, welcome, excel scripting and functions.r). I also can't execute the script functions.r and excel doesn't recognise BERT when I try to call functions from bert with application.run ( "bert.call"...).
Neža

Related

How to use VBA to run R script

I'm having trouble running my R script from Excel VBA.
I wanted to create a Button in Excel with a macro that runs an R script but I've tried so many versions and none worked.
My path to R is "C:\Program Files\R\R-4.1.1\bin\Rscript.exe"
The path to my R Script is "\repo\xyz\18320\38293\one\redirected folder\Desktop\test_run\test\Code\sample.R"
How can I create a shell on VBA which actually executes the Script?
Can I maybe execute the script from the command line and then connect the excel macro to the command line? I didn´t manage to find a solution.

Why are R scripts inside of Databricks notebooks creating writeLines errors?

I'm using R in Databricks. R Studio runs fine and executes from the Databricks cluster. I would like to transition from R Studio to notebooks. However, I am repeatedly getting this error when running the simplest R scripts (one-liner assignments) inside notebooks:
Error in writeLines(DB_STREAM_BEACON_STRING_START__, DATABRICKS_STDERRCONNSTREAM__) :
invalid connection
Some(<code style = 'font-size:10p'> </code>)
Figured it out after several hours of research and troubleshooting. This problem arises from Rmarkdown failing to write various types of common Rmarkdown output (most likely viewer output) to stdout. Rather than directly running rmarkdown::render() from the notebook, run R -e 'rmarkdown::render() > out.txt as a shell script in the notebook, redirecting output to a text file.

Write CMD output to text file using R

I'm writing a cryptocurrency mining application where I want to log the output of the miner to a text file. Each miner can be started by using a Windows Batch File or a Windows Command Script. When I try to use the shell function like so:
shell("cd C:\\Users\\Alex\\Documents\\Mining\\bin\\ccminer & SIGT >> C:\\Users\\Alex\\Documents\\Mining\\logs\\sigt.txt")
where SIGT is the Windows Command Script, R doesn't accept any new inputs, since the process in the command line hasn't finished (as it runs indefinitely). I want to be able to analyse the output, stop the mining, change to a different mining program etc., all within R. Any help would be greatly appreciated.

calling Qiime with system call from R

Hej,
When I try to call QIIME with a system call from R, i.e
system2("macqiime")
R stops responding. It's no problem with other command line programs though.
can certain programs not be called from R via system2() ?
MacQIIME version:
MacQIIME 1.8.0-20140103
Sourcing MacQIIME environment variables...
This is the same as a normal terminal shell, except your default
python is DIFFERENT (/macqiime/bin/python) and there are other new
QIIME-related things in your PATH.
(note that I am primarily interested to call QIIME from R Markdown with engine = "sh" which fails, too. But I strongly suspect the problems are related)
In my experience, when you call Qiime from unix command line, it usually creates a virtual shell of it`s own to run its commands which is different from regular system commands like ls or mv. I suspect you may not be able to run Qiime from within R unless you emulate that same shell or configuration Qiime requires. I tried to run it from a python script and was not successful.

Run R script using batch file

I'm attempting to schedule an R script as mentioned in
the Scheduling R Script stackoverflow answer but I keep getting an error that says
ARGUMENT 'BATCH' \__ignored__
ARGUEMENT 'C:/Users/cburton/AutomaticJobPuller/jobsPuller.R' \__ignored__
and then it has the startup prompt for the R programming environment.
The contents in my batch file are
C:\Users\cburton\Documents\R\R-3.2.0\bin\R.exe BATCH C:\Users\cburton\AutomaticJobPuller\jobsPuller.R --vanilla
This is my first batch file, so I'm sure it's something simple, but I can't find the answer to this.

Resources