RStudio: Prompt line cannot run - rstudio

Sometimes when I'm working on RStudio the command prompt > doesn't appear and I can't even save the script.
This time it happened after I was trying to a load a package.
How can I get over this?

Related

Adding command line arguments to AppImage

When opening an appImage with double click, is there some way to automatically add command line arguments?
Why: on a fresh UBUNTU MATE 22.04 installation, I'm having problems with some appImages: most of them successfully open, others open and close immediately;
I'm experiencing this in particular with
mendeley-reference-manager-2.77.0-x86_64.AppImage
If launched by double click, it opens and close.
If launched from command line I get this error:
[21690:0908/111927.721030:FATAL:gpu_data_manager_impl_private.cc(445)] GPU process isn't usable. Goodbye.
I found here a working solution, which successfully opens the appImage, namely launch the appImage with the following arguments:
./mendeley-reference-manager-2.77.0-x86_64.AppImage --disable-gpu-sandbox
Then, I was wondering if I can make the double-click launch the appImage with these arguments.
Thanks,
Valerio
I'm using AppImageLauncher for desktop integration. When first opening an AppImage file it creates a .desktop file with the execution command in ~/.local/share/applications. You can manually add the desired command line arguments there:
Exec=sh -c "/home/user/Applications/mendeley-reference-manager-2.80.1-x86_64.AppImage --disable-gpu-sandbox"
Reference

How to check vscode commands that are invoked when I use a keybinding?

I have a problem with doublepasting values into vscode's console, I would like to check what commands are run to find out what's causing the problem and I wasn't able to find out how to do it, I remember launching a command in Sublime Text that logged every command ran to editor's console and I don't know how to enable such mode in vscode.

how to execute mvn commands from shell script

I am writing a shell script(abcd.sh) and executing on windows 10.
mvn clean install
echo "TESTING"
When I am running it using
sh abcd.sh
then I am not getting any output in the screen. I am not sure the maven command is getting executed or not.
The second line is also never getting printed on the screen.
If you are using Windows 10 ,you can use bash.
To enable bash in Windows 10:
Click the Start button , click Control Panel, click Programs, and then click Turn Windows features on or off.
Enable Windows Subsystem for Linux(Beta)
To get Bash installed, open Command Prompt and type “bash”.
Also , You can log the console output of maven commands in a text file and verify if the command was executed or not.
e.g.
mvn clean install --log-file output.txt

run DXL script on the background (command line) : DXL/DOORS

I am trying to start a dxl script with command line. But i am getting lots of warnings and errors.
When I try this script on doors gui , it works fine but when i try on this command line without gui, it doesn't.
Here is the image of warnings :
Here is the commandline script :
"%ProgramFiles%\IBM\Rational\DOORS\9.3\bin\doors.exe" -d 36677#bie -u "xxx yyy" -P don -b "d:\workset\mc\addins\Devel\exporterRTF.dxl"
Why it doesn't work with commandline ? Any help, idea etc is appreciated.
EDIT :
this is a link which i try to run : myprogram.dxl
this is a link which is imported in my running script include in myprogram.dxl
this is a link which is secondly imported in my running script include in myprogram.dxl
There are other settings you need to run in Batch mode (pulled from the DOORS help):
Runs Rational DOORS in batch mode. Rational DOORS starts without the GUI (it suppresses the login screen and the database explorer), runs the specified DXL program, and then stops.
In batch mode you normally need other switches like -user, -password and -project to log in and specify the current project.
The parameter of the -batch switch specifies the file that contains the DXL program that you want to run in batch mode.
You probably need a current project specified. Also you may need to add a command at the end of your script to exit DOORS if you don't want the session to stay open.
The errors that you list seem like regular DXL errors, so if you need more assistance than this, you will need to post some of the code.
EDIT:
If you put all of the files into one does it run? Another option may be to include the Addins path on your command line. I believe the issue is that the batch mode is not recognizing the included files as part of the same scope.

how to make my console in python not to close?

I'm making a application in python from Windows. When I run it in the console, it stops, shows an error, and closes. I can't see the error becase its too fast, and I can't read it. I'm editing the code with IDLE (the program that came with python when I instaled it), and when I run it with the python shell, there are no errors. I would run it from IDLE, but when I use the console, it has more features.
I don't know why this is happening. I need your help.
Run the program from an already-open terminal. Open a command prompt and type:
python myscript.py
For that to work you need the python executable in your path. Just check on how to edit environment variables on windows, and add C:\PYTHON26 (or whatever directory you installed python to).When the program ends, it'll drop you back to the CMD windows prompt instead of closing the window.Add code to wait at the end of your script. Adding ...
raw_input()
... at the end of the script makes it wait for the ENTER key. That method is annoying because you have to modify the script, and have to remember removing it when you're done.
Run your program from a Windows command prompt. That will not automatically close when the program finishes.
If you run your program by double-clicking on the .py file icon, then Windows will close the window when your program finishes (whether it was successful or not).
Create a text file in the program directory i.e. wherever your script is located. Change the extension to .bat for example text.bat. Then edit the text file and write:
python main.exe
pause
Now you can run the program without typing into the command console by double clicking the bat file, and the console window will not close.

Resources