【发布时间】:2023-07-24 18:45:02
【问题描述】:
当我发出命令 sbatch job.sh 并且一切运行顺利时,在我的 job.sh 的位置生成了一个文件 test.Rout,我想知道如何更改位置这个 .Rout 文件。
job.sh
#!/bin/bash
#SBATCH --job-name="test
#SBATCH --nodes=1 # number of nodes
#SBATCH --ntasks-per-node=10 # number of cores
#SBATCH --time=01:00:00 # walltime
#SBATCH --output=error/job.out
#SBATCH --error=error/error.err
module load R
R CMD BATCH test.R
test.R
print(2+2)
test.Rout
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Previously saved workspace restored]
> print(2+2)
[1] 4
>
> proc.time()
user system elapsed
0.107 0.039 0.154
【问题讨论】:
标签: slurm