executable

R.exe, Rcmd.exe, Rscript.exe and Rterm.exe: what's the difference?

£可爱£侵袭症+ 提交于 2019-11-26 12:03:31
I'm struggling with the different R executables. What exactly is the difference between R.exe (with or without CMD BATCH option), Rcmd.exe, Rscript.exe and Rterm.exe when running command line in a batch file? And what is the difference between: R.exe --no-environ --no-save < "c:\temp\R\test.R" > "c:\temp\R\out.txt" 2>&1 and R.exe CMD BATCH --no-environ --no-save "c:\temp\R\test.R" "c:\temp\R\out.txt" No difference in the output. I cannot find anything about Rcmd.exe and Rscript.exe in the 3079 pages R reference manual. By the way: I am using Windows. Dirk Eddelbuettel Caveat: I work much more

How do you avoid over-populating the PATH Environment Variable in Windows?

[亡魂溺海] 提交于 2019-11-26 11:45:29
问题 I would like to know what are the approaches that you use to manage the executables in your system. For example I have almost everything accessible through the command line, but now I come to the limit of the path string, so i can\'t add any more dir. So what do you recommend? A long time ago, I tried to use softLinks of the executables in a Dir that belonged to the path, but that approach didn\'t work. Throw the \"executable only\" to a known Dir,has the problems that almost any application

Embedding an external executable inside a C# program

让人想犯罪 __ 提交于 2019-11-26 11:44:57
How do I embed an external executable inside my C# Windows Forms application? Edit: I need to embed it because it's an external free console application (made in C++) from which I read the output values to use in my program. It would be nice and more professional to have it embedded. Second reason is a requirement to embed a Flash projector file inside a .NET application. Here is some sample code that would roughly accomplish this, minus error checking of any sort. Also, please make sure that the license of the program to be embedded allows this sort of use. // extracts [resource] into the the

Embed a JRE in a Windows executable?

筅森魡賤 提交于 2019-11-26 11:41:36
Suppose I want to distribute a Java application. Suppose I want to distribute it as a single executable. I could easily build a .jar with both the application and all its external dependencies in a single file (with some Ant hacking). Now suppose I want to distribute it as an .exe file on Windows. That's easy enough, given the nice tools out there (such as Launch4j and the likes). But suppose now that I also don't want to depend on the end user having the right JRE (or any JRE at all for that matter) installed. I want to distribute a JRE with my app, and my app should run on this JRE. It's

How can the terminal output of executables run by Python functions be silenced in a general way?

巧了我就是萌 提交于 2019-11-26 11:38:13
问题 I want to suppress all of the terminal output produced by a function that runs executables. I have attempted to suppress the output of a Python function by using a context manager that temporarily redefines stdout and stderr each time the function is called. This suppresses terminal output produced by print calls in the function, but it doesn\'t seem to work when the function calls executables that produce terminal output. So, how could the output of executables called by Python functions be

Is a Linux executable “compatible” with OS X?

偶尔善良 提交于 2019-11-26 11:21:28
问题 If you compile a program in say, C, on a Linux based platform, then port it to use the MacOS libraries, will it work? Is the core machine-code that comes from a compiler compatible on both Mac and Linux? The reason I ask this is because both are \"UNIX based\" so I would think this is true, but I\'m not really sure. 回答1: No, Linux and Mac OS X binaries are not cross-compatible. For one thing, Linux executables use a format called ELF. Mac OS X executables use Mach-O format. Thus, even if a

Producing executable jar in NetBeans

左心房为你撑大大i 提交于 2019-11-26 11:17:06
问题 I\'m using NetBeans 6.5 and for some reason it won\'t produce executable jar \"out of the box\". I set my project to be the main project, defined main class in the project properties \"run\" menu and it works flawlessly when I press F6 to run it. I looked at the manifest file and it indeed didn\'t define the main class there, and also omitted the library dependencies. Am I missing something? Is there a way (other than manually altering the manifest file) to produce executable jar files? EDIT:

How to embed a file into an executable?

大憨熊 提交于 2019-11-26 11:09:02
问题 I have a small demo executable wrote in C++ that depends only on one 5kb PNG image being loaded before it can run, which is used for a pixel text I made. Because of this one file, I would need to give out a ZIP archive instead of just one executable file, which creates enough friction between download and \'play\' that I believe would dissuade some from trying it out. My question is, is there anyway to embed the PNG file (and any other file really) into the Executable or source code so that

How to create an executable .exe file from a .m file

∥☆過路亽.° 提交于 2019-11-26 11:01:53
问题 I was wondering if there is a way to create a \'.exe\' file from \' .m\' file in MATLAB, such that it can be run in machine which does not have MATLAB (like it can be done in C, C++). I know writing a MATLAB function is one way, but I am not sure if it can run in machine without MATLAB. Also I would like to hide my code and just create a script which can be run by a user using his own data files. 回答1: The Matlab Compiler is the standard way to do this. mcc is the command. The Matlab Runtime

Difference between extracting and packaging libraries into a jar file

徘徊边缘 提交于 2019-11-26 10:48:54
问题 I would like to know the difference between extracting and packaging libraries into a jar file from eclipse with the runnable jar file creation. If my program (runnable jar) uses other classes which require these external libraries(jars), what should I pick? 回答1: If you want to put jars into your generated jar file, you can use packaging method. For example if you are using an Apache library or some other 3rd party jars, you may want to keep these jars preserved in your generated jar. In this