Windows中的这个Ubuntu子系统提供了经典的linux shell。 我使用system()命令从我的Ubuntu笔记本电脑的R脚本中使用CDO (气候数据操作员)。我之前问过如何在Windows中使用这个system()命令:How can I call a Windows Terminal inside an R script?但我需要的是不同的:如何在Windows10的R脚本中调用Ubuntu Shell?
然后我切换到Windows并打开cmd (我尝试了cmd正常模式和管理模式)并运行wsl (我的计算机只能支持wsl1),但是我得到了错误:Windows Subsystemfor Linux has no installed distributions.Distributions can be installed by visiting the Microsoft Store:但是,虚拟机被启用
我使用的是ubuntu14.04,在推进代码之前,我经常运行命令git diff,这样我就可以知道我在代码中做了哪些更改。我不能解决任何冲突,也不能使用git diff,因为meld太复杂了。所以我想恢复以前的状态。Usage: meld <file|dir> Start a version control comparison
meld