I am trying to start ab Spark but I got following error message
is not recognized as an internal or external command,
operable program or batch file.
Java/ Scala is installed
Also I set following user variables and system Path
But I get this error when running sparkR
the path to spark does not allow for spaces, so i just moved it to c:\spark, works fine now
Related
shell_exec("Rscript C:\R\R-3.2.2\bin\code.R ");
This is the call to script.On calling the above script, the error occurs.
I am trying to call my R script from the above path but no output is being shown. While checking the error logs of PHP, it says 'Rscript' is not recognized as an internal or external command, operable program or batch file.' The script is working fine on the Rstudio but not running on the command line.
Add the Rscript path to your environment variables in Windows:
Go to Control Panel\System and Security\System and click Advanced System Settings, then environment variables, click on path in the lower box, edit, add "C:\R\R-3.2.2\bin"
Restart everything. Should be good to go. Then you should be able to do
exec('Rscript PATH/TO/my_code.R')
instead of typing the full path to Rscript. Won't need the path to your my_code.R script if your php file is in the same directory.
You need to set the proper path where your RScript.exe program is located.
exec ("\"C:\\R\\R-3.2.2\\bin\\Rscript.exe\"
C:\\My_work\\R_scripts\\my_code.R my_args";
#my_args only needed if you script take `args`as input to run
other way is you declare header in your r script (my_code.r)
#!/usr/bin/Rscript
and call it from command line
./my_code.r
If you are running it in Git Bash terminal, you could follow a revised version of the idea suggested by #user5249203: in the first line of your file my_code.R, type the following
#!/c/R/R-3.2.2/bin/Rscript.exe
I assumed that your path to Rscript.exe is the one listed above C:\R\R-3.2.2\bin. For anyone having a different path to Rscript.exe in Windows, just modify the path-to-Rscript accordingly. After this modification of your R code, you could run it in the Git Bash terminal using path-to-the-code/mycode.R. I have tested it on my pc.
I faced the same problem while using r the first time in VS Code, just after installing the language package (CRAN).
I restart the application and everything worked perfectly. I think restarting would work for you as well.
I ran this METEOR_PACKAGE_DIRS="packages" meteor --settings config/orthancDICOMWeb.json this in my ohif application root. but it gives a error "METEOR_PACKAGE_DIRS=packages : The term 'METEOR_PACKAGE_DIRS=packages' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again".My packege file is located in the project root.My OS is windows 10.
The command
METEOR_PACKAGE_DIRS="packages" meteor --settings config/orthancDICOMWeb.json
seems to be in unix/linux format.
On windows you may use set to first set the environment variables (wrapping your code in a small batch script):
set METEOR_PORT=3090
set METEOR_SETTINGS=config/orthancDICOMWeb.json
set METEOR_PACKAGE_DIRS=packages
call meteor --port=%METEOR_PORT% --settings %METEOR_SETTINGS$
I could not run my R Script from command prompt . Even if I have updated the path in environment variables.
It is displaying the following error message:
'rscript' is not recognized as an internal or external command, operable program or batch file
What could be the issue behind this?
I took the following steps to get spark up and running in rstudio
Downloaded it at: http://spark.apache.org/
Stored the file in the following dir: "C:\Users\Marc\Apache"
Now I have a bin file containing a sparkR file called: spark-1.6.1-bin-hadoop2.6. However when I open up my terminal, move to the right dir and try to run it using:
.bin\sparkR
I get the following error:
R is not recognized as an internal or external command ....
Any thoughts on what goes wrong here?
¿Do you have R installed and added to the PATH?
Also check R CMD on Windows 7 Error - "R" is not recognized as an internal or external command, it may help you.
The documentation states that there is a command-line shell for sqlite3:
To start the sqlite3 program, just type "sqlite3" followed by the name the file that holds the SQLite database."
When I try this, in the Windows Command Prompt I get the error message:
'sqlite3' is not recognized as an internal or external command,
operable program or batch file.
Windows explorer reveals several 'Sqlite3" folders in various places:
backends(C:/Python26/Lib/site-packages/django/db)
Lib(C:/Python26)
backends(C:/Django-1.1.1/Django-1.1.1/build/lib/django/db
backends(C:/Django-1.1.1/Django-1.1.1/django/db)
How do I access the shell, can anyone help?
Download sqlite3 binary for windows here. Unzip it and put it somewhere in your path.
That's the error message you get if you try to run any executable that's not in your current directory or in the path.
To correct the problem, find the SQLite executable (SQLITE3.EXE), and run it from the directory in which it resides, or add SQLITE3.EXE to your PATH environment variable.
You have to properly set your PATH environment variable to include one of the locations where sqlite3.exe resides. Usually SQLite seems to set that environment variable upon install but the list of paths where you found it indicates that it just came as a library for various other applications. Therefore it's not too surprising that the path isn't set.
I have sqlite3 on my machine, and as others have mentioned it must be located within a folder specified by your PATH environment variable. Since I use it a lot, I threw it in windows\system32, which is where I place a lot of utilities like pstools.