RStudio 0.9xデスクトップアイコンをlubuntu 15.10で開くことができません

RStudio 0.9xデスクトップアイコンをlubuntu 15.10で開くことができません

apt-get最新のlubuntu()とRStudio(0.99.489 - Ubuntu 12.04 + 32ビット)にR(3.2.2)をインストールしました。 Rはコマンドラインで実行されますが、Graphics何らかの理由でインストール時にこのセクションに配置されたショートカットからIDEを起動することはできません。 RStudioのショートカットキーと同じですProgramming。 /usr/share/applications/R.desktop を実行しようとすると、次の結果が表示されます。

me@system:~$ . /usr/share/applications/R.desktop 
[Desktop: command not found
software: command not found
Science: command not found
Math: command not found

そして..

me@system:~$ . /usr/share/applications/rstudio.desktop 
[Desktop: command not found
bash: fg: %F: no such job
bash: text/x-r: No such file or directory
bash: text/x-R: No such file or directory
bash: text/x-r-doc: No such file or directory
bash: text/x-r-sweave: No such file or directory
bash: text/x-r-markdown: No such file or directory
bash: text/x-r-html: No such file or directory
bash: text/x-r-presentation: No such file or directory
bash: application/x-r-data: No such file or directory
bash: application/x-r-project: No such file or directory
bash: text/x-r-history: No such file or directory
bash: text/x-r-profile: No such file or directory
bash: text/x-tex: No such file or directory
bash: text/x-markdown: No such file or directory
bash: text/html: No such file or directory
bash: text/css: No such file or directory
bash: text/javascript: No such file or directory
bash: text/x-chdr: No such file or directory
bash: text/x-csrc: No such file or directory
bash: text/x-c++hdr: No such file or directory
bash: text/x-c++src: No such file or directory

ここで何が間違っているのかを理解する方法についてのアドバイスを提供していただきありがとうございます。


編集:下記のように。

me@system:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:    15.10
Codename:   wily

ベストアンサー1

少し誤解がありますが、ソーシングを通じて呼び出すようです。これは通常、. ~/.bashrcシステムに特定の設定を適用したい場合に使用されます。

ただし、アプリケーションのショートカット*.desktopファイルはこのようには機能しません。このファイルには、.desktopダブルクリックまたはメニューから実行したときにExec=somecommandシステムが実際に実行されるファイルが含まれています。somecommand

したがって、Terminalを使用して同じ操作を実行するには、どのコマンドが実行されているかを*.desktop把握する必要があります。Exec=...

テキストビューアを開き、どのコマンドが実行されたかを確認したり、コマンドラインでgrepを使用したりできます。たとえば、R.desktop私が見たファイルについては次のようになります。

$ grep '^Exec' /usr/share/applications/R.desktop
Exec=R

R.desktopこれは私がしたすべてがコマンドを実行したことを教えてくれますR

したがって、このショートカットと同じ操作を実行するには、コマンドプロンプトに入力するR.desktopだけですR。したがって、そうしてRが始まるようにします。

$ R

したがって、ファイルをチェックインし、R.desktopどのコマンドが続くかを確認してExec=実行します。

おすすめ記事