2020-12-01から1ヶ月間の記事一覧

git pushでエラーが出た時

エラー内容 ! [rejected] branch1 -> branch1 (non-fast-forward) error: failed to push some refs to 'git@github.com:***/***.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integr…

Google Colaboratory内のggplot2の図で日本語を文字化けせず表示

Google Colaboratory内のggplot2の図で日本語を文字化けせず表示する方法を示す。 初めに以下のライブラリを呼ぶ。 library(ggplot2) library(systemfonts) 以下のコードですでにあるフォントを確認できる system_fonts() この中に日本語に対応したものが無…

Jupyter Notebookがmacで使えるようになるまで

macでJupyter Notebookを使える様にしていく。 pythonやxcodeは入っているとする。 $ pip3 install jupyter でjupyterのインストールは完了。 しかし、 $ jupyter notebookとうっても起動しない。 -bash: jupyter: command not found とエラーが出てしまう。…

R言語でライブラリをインストールし、ロードするまで

R言語でライブラリをインストールしたいときは install.packages("fmsb") 続いてロードしたいときは library(fmsb) 必要に応じてfmsbの部分は変える ""はあってもなくても良いようだ

google colabでgithubをライブラリを入れるとき

例えば https://github.com/ricardo-bion/ggradar をgoogle colabの環境に入れたい時、 devtools::install_github("ricardo-bion/ggradar", dependencies=TRUE) library(ggradar) とすれば使えるようになる 参考資料 https://www.it-swarm-ja.tech/ja/r/rのg…