I want to create a differential archive using 7zip command line.
I want my main archive file to not beeing updated but all the time i get any change i want it to create new file with only those changes.
Related
When I try to save any model merga or hipernetwork,etc inside stable diffusion, there's an error and a message like this appear in the cmd:
RuntimeError: Parent directory "place/where/i'm/trying/to/save" does not exist.
Is there anyway I can change the parent directory or to make the program save the files properly?
I tried do create hypernetworks, Embeddings and merge models in Stabble Diffusion
I expected the archives to be saved in the setted folders
The program was unable to find the parent directory to such folders
What is the difference between using R console vs writing R code in a text file? I wrote this question on Kaggle but there were no previous questions on this matter.
When you supply code via text file (.R file) you "run the file with R" without visualizing it and it can stop somewhere due to error i.e. (which can be handled, etc.). Also running an .R file with R (for example via .bat file) generates a .Rout file, which is basically a print out of the console and some aditional info like runtime, etc.
If you feed the code in the console, each line is treated independently: even if there is an error you can process an aditional line (if it depends on the failed comand then it will fail also though) and you get to see each result as soon as the comand is run. In comparision to the .R file you will have no copy of the code other than that stored in the session - meaning you will end up needing to save to disk the code you have written if you want it to persist between session. Now you can choose to use whatever text format you like for this task from simple .txt to .docx BUT if you use .R format you can manipulate with notepad++ or the notepad editor and still run/complipe the file with R (via .bat file for example). In case of opting against .R file to store the written code, you will have to feed it to the console again to run.
In R Studio you can open .R files and manage (extend, correct) your code and feed it comand per comand or as a block to the console. So one could say you use .R files to manage you code, having the possiblity to compile/run these .R files directly with R to execute on a button click or repeatedly for example.
Not sure if that is what you are looking for?
I am currently writing a bash file run.sh that runs some python code, followed by some code in an .R file. I call the file, data_analysis.r, using Rscript data_analysis.r inside run.sh.
Each time I run the script, it generates an Rplots.pdf file, which I am okay with, but I would like to set the file to generate at a custom location.
For now, I can simply add a line in run.sh that renames and moves the Rplots.pdf file to the intended location, but I'm not quite happy with this solution.
Does anyone know how to set a custom location for the Rplots.pdf file generated by Rscript?
There should be a line in data_analysis.r which says
pdf(file="RPlots.pdf")
You can edit this line to location you want and hard code it.
pdf(file="/mylocation/RPlots.pdf")
I want to be able to create 2 or more tar.gz (or other) archives that will have some overlapping directories, but not overlapping files. I would like to extract my 2 or more archives into the same working area and have the contents of overlapping directories overlaid or merged, rather than have a situation where I get 'Folder' and 'Folder (2)'
More detailed example:
arch_1.tar.gz contains the following
Project
Documentation
README_1.md
Code
app_xyz.c
server_xyz.c
And arch_2.tar.gz contains this
Project
Documentation
README_2.md
Code
app_abc.c
server_abc.c
Now I want to be able to extract the 2 example tar.gz archives from above and end up with this:
Project
Documentation
README_1.md
README_2.md
Code
app_abc.c
app_xyz.c
server_abc.c
server_xyz.c
But right now, when I test this, I get this (not desirable):
Project
Documentation
README_1.md
Code
app_xyz.c
server_xyz.c
Project (2)
Documentation
README_2.md
Code
app_abc.c
server_abc.c
Someone at work described this to me a while ago and it sounded great, but I haven't been able to implement it. Maybe it's just a matter of different options on the command line when I go do the extract.
In case it matters, I am using Windows 7 on 1 machine that will be creating the tar.gz files but the extraction will likely occur in Mint Linux (all other dev machines).
Use the command line tar utility rather than the default GUI option provided by your operating system.
tar -xvf arch_1.tar.gz
tar -xvf arch_2.tar.gz
does exactly what I wanted to do.
When I tried right-click > extract using Mint Linux it did not merge the folder contents.
Is there a way to display past commands in R/R Studio?? I know in R Studio there is a shortcut (CTRL+UP Arrow) that allows you to see past lines you have ran. But this shortcut only allows you to access only a single line, not a block of previously run code. Is there a package, or some way in R to display and select blocks of past code in R/R Studio?
Here you can find a description of the panes in R Studio, including the "history" pane.
There you can select several lines and paste them into the code.
Also, you can use the command savehistory() to save your history in a file you can the modify. If you want to choose the name of the file to be saved, use
savehistory(file = filename)
The same option is available in the basic R GUI (MS Windows), with "Save history" in the "File" menu (as a .RHistory file). Then, you can open it with any text editor and modify your history to make a script.
To see a specific number of lines, you can use history(25) (for 25 previous lines).