[R-SIG-Win] Call to R.exe in a Script fails since the upgrade from R 3.6.1 to R 4.0.2

Uwe Ligges ||gge@ @end|ng |rom @t@t|@t|k@tu-dortmund@de
Tue Oct 27 08:46:16 CET 2020


I think you have to show the code that is supposed to generate that 
"log.txt".


Best,
Uwe Ligges

On 27.10.2020 08:15, Marcel Baumgartner wrote:
> Dear R Community,
> 
> I call R from within a software called “IDEA” ([www.casewareanalytics.com <http://www.casewareanalytics.com/>](http://www.casewareanalytics.com <http://www.casewareanalytics.com/>)). This language uses its own scripting language, but it is very similar to Visual Basic. The basic call is as shown below:
> 
> 
> R_Command is a string of the form (the Chr(34) creates a double quote):
> In my file “script.R”, I then start everything by:
> This has worked perfectly up to R 3.6.1. But since I migrated to R 4.0.2, this command does not create the “log.txt” anymore. The script runs, it finds the arguments in the file “nga_config.R”, generates the output data, but then does not write the log.txt. However, when I run this R_command on the command line in Windows, all works fine: the log.txt is created. So the syntax is correct.
> In the R windows FAQ, i see this:
> 
> ### 2.12 Can I use `R CMD BATCH`?
> 
> 
> Yes: use `R CMD BATCH --help` or `?BATCH` for full details.
> 
> 
> You can also set up a batch file using `Rterm.exe`. A sample batch file might contain (as one line)
> 
> 
> 
> I tried this, but I have the same issue: the output file ("log.txt") is not crated. Also, choosing R.exe and Rterm.exe has no impact.
> 
> Do you know whether something has changed in R 4.* that could cause this issue?
> 
> Thanks for your help. Happy to do a Skype/Teams/Zoom session anytime!
> 
> Best regards
> 
> Marcel Baumgartner
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-windows mailing list
> R-SIG-windows using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-windows
>



More information about the R-SIG-windows mailing list