create account

[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects by dapeng

View this thread on: hive.blogpeakd.comecency.com
· @dapeng · (edited)
$38.48
[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects
### Repo

https://github.com/pzhaonet/rosr

### Brief Intro and curriculum

'rosr' is an R package for creating reproducible academic project with integrated various academic elements, including data, bibliography, codes, images, manuscripts, dissertations, slides and so on. These elements are well connected so that they can be easily synchronized and updated. Users don't have to repeat copying and pasting their results and figures from time to time. It will be easy for the scientific researchers to use, even if they are R beginners, or even non-R-users.

A brief introduction can be found in one of my previous post: 

- [rosr: Create academic R markdown projects for open science and reproducible research](https://steemit.com/utopian-io/@dapeng/rosr) 



### New Features

In my previous about 'rosr', I planned 

1. to add more choices of the sub-projects with demos  to the arguments of the functions
2. to make a GUI for creating or maintaining a project for code-haters. 

Now these two tasks have been accomplished! And even more!

For Plan 1, individual functions for creating each sub-project as well as self-defined templates were created, shown in the following commits:

- [individual functions for each task of creating](https://github.com/pzhaonet/rosr/commit/78e832f575a7a6e39bc085a98544fd68e8e89bba)
- [self-defined templates](https://github.com/pzhaonet/rosr/commit/1ec6a597a22f1db9dbfd2e921bfab22f1feb90f5)

For Plan 2, a shiny app as well as a RStudio addin were created, shown in the following commits.

- [add shiny app](https://github.com/pzhaonet/rosr/commit/96334625e34f307fa2359231bab8f150f4c1f2e4)
- [add skeleton of the project](https://github.com/pzhaonet/rosr/commit/6f7b26304b099e36190d9c74cb5c18b06aabf2da)


Now non-R users don't have to run any R codes after installation. Just click the 'Addins' button in RStudio and you can find "Create a rosr project". 

![](https://github.com/rbind/pzhao/raw/master/static/img/rosr-addin.png)



Then a sheet will pop out, with all useful templates of journal manuscripts, posters, slides, books, dissertations and websites.

Click the elements you want, and click 'create'. You will get everything you like.

![](https://github.com/rbind/pzhao/raw/master/static/img/rosr-screenshot.png)

Furthermore, functions for reading and processing equations, for removing special characters, for installation of packages, as well as for collecting and displaying templates were added.

- [add internal functions](https://github.com/pzhaonet/rosr/commit/f7136797763fc971e51c885f534bb56bc773d333)
- [functions for processing maths expressions](https://github.com/pzhaonet/rosr/commit/1fec36dd677f84a61421b1c6717c63e33d3656f8)
- [functions for installing packages and for displaying templates](https://github.com/pzhaonet/rosr/commit/3193642c7f175d3a83676c00a85711608878f6d8)

Codes were improved by re-writing functions and adding comments.

- [use functions to avoid repeating codes](https://github.com/pzhaonet/rosr/commit/df08cbc70e97960e9019835f3f38b9c235473e8f)
- [add comments](https://github.com/pzhaonet/rosr/commit/1e5c0b0a58b64c871fa3794b8239934f8c9708a8)
- [update readme and description](https://github.com/pzhaonet/rosr/commit/2f409f782df40a75edd78bbb465f3bd11ba2d732)

#### GitHub Account

https://github.com/pzhaonet
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 33 others
πŸ‘Ž  
properties (23)
authordapeng
permlinkrosr-shiny
categoryutopian-io
json_metadata{"tags":["utopian-io","development","r","markdown","programming"],"image":["https://github.com/rbind/pzhao/raw/master/static/img/rosr-addin.png","https://github.com/rbind/pzhao/raw/master/static/img/rosr-screenshot.png"],"links":["https://github.com/pzhaonet/rosr","https://steemit.com/utopian-io/@dapeng/rosr","https://github.com/pzhaonet/rosr/commit/78e832f575a7a6e39bc085a98544fd68e8e89bba","https://github.com/pzhaonet/rosr/commit/1ec6a597a22f1db9dbfd2e921bfab22f1feb90f5","https://github.com/pzhaonet/rosr/commit/96334625e34f307fa2359231bab8f150f4c1f2e4","https://github.com/pzhaonet/rosr/commit/6f7b26304b099e36190d9c74cb5c18b06aabf2da","https://github.com/pzhaonet/rosr/commit/f7136797763fc971e51c885f534bb56bc773d333","https://github.com/pzhaonet/rosr/commit/1fec36dd677f84a61421b1c6717c63e33d3656f8","https://github.com/pzhaonet/rosr/commit/3193642c7f175d3a83676c00a85711608878f6d8","https://github.com/pzhaonet/rosr/commit/df08cbc70e97960e9019835f3f38b9c235473e8f","https://github.com/pzhaonet/rosr/commit/1e5c0b0a58b64c871fa3794b8239934f8c9708a8","https://github.com/pzhaonet/rosr/commit/2f409f782df40a75edd78bbb465f3bd11ba2d732","https://github.com/pzhaonet"],"app":"steemit/0.1","format":"markdown"}
created2019-01-31 15:47:09
last_update2019-01-31 15:47:39
depth0
children5
last_payout2019-02-07 15:47:09
cashout_time1969-12-31 23:59:59
total_payout_value29.168 HBD
curator_payout_value9.308 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,299
author_reputation64,632,001,917,831
root_title"[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,216,579
net_rshares79,588,019,559,232
author_curate_reward""
vote details (98)
@amosbastian · (edited)
$11.26
It's cool to see you've made another R package to add to your extensive list of packages! Your [previous post](https://steemit.com/utopian-io/@dapeng/rosr) introducing the project was also a very interesting read.

As I mentioned before, I've never really used R properly, so I can't really give proper feedback, but let's try anyway:

* Great comments explaining what everything does!
* I think a lot of work went into this, great stuff! To save time you could create a pull request instead of linking all the commits individually (I see some of them were made within minutes of each other, despite being quite large, which is a bit weird as well).
* From my limited perspective everything seems consistent, which is also great. A lot of functions like `create_dir` seem like they could / should be in the standard library, or refactored by you so you can simply import them on a case by case basis (as I think I've seen them before in some of your other projects). Am I completely wrong in thinking this (it's completely fine if you just tell me straight up that I am, haha).
* Try using using the imperative mood in the subject line of your commit messages.

Once again a quality contribution from you! I've noticed you've submitted a lot these past couple of weeks, so you must've been really busy. How are you holding up? ;)

---

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2-2-1-1-2-3-1-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , ,
properties (23)
authoramosbastian
permlinkre-dapeng-rosr-shiny-20190202t125559345z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://steemit.com/utopian-io/@dapeng/rosr","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2-2-1-1-2-3-1-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2019-02-02 12:56:00
last_update2019-02-02 12:56:09
depth1
children2
last_payout2019-02-09 12:56:00
cashout_time1969-12-31 23:59:59
total_payout_value8.506 HBD
curator_payout_value2.750 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,784
author_reputation174,473,586,900,705
root_title"[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,298,105
net_rshares23,027,782,196,493
author_curate_reward""
vote details (15)
@dapeng ·
Thank you very much for your review and kind words, @amosbastian! 

The commits were made within a short time because I had a serious problem when syncing my folders in Dropbox between different PCs. I was annoyed and removed the old commits and rewrote them...

Regarding the `create_xxx` family, I am not quite sure how to refactor them. The current version should be convenient for users. Otherwise, let's wait and see their response :)

Your suggestions are very helpful. Thanks again!
properties (22)
authordapeng
permlinkre-amosbastian-re-dapeng-rosr-shiny-20190203t171607568z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["amosbastian"],"app":"steemit/0.1"}
created2019-02-03 17:16:12
last_update2019-02-03 17:16:12
depth2
children0
last_payout2019-02-10 17:16:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length489
author_reputation64,632,001,917,831
root_title"[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,348,589
net_rshares0
@utopian-io ·
Thank you for your review, @amosbastian! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-dapeng-rosr-shiny-20190202t125559345z-20190204t175718z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-02-04 17:57:21
last_update2019-02-04 17:57:21
depth2
children0
last_payout2019-02-11 17:57:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length63
author_reputation152,955,367,999,756
root_title"[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,394,351
net_rshares0
@partiko ·
Hello @dapeng! This is a friendly reminder that a Partiko user has just followed you! Congratulations!

To get realtime push notification on your phone about new followers in the future, download and login Partiko using the link below. You will also get 3000 Partiko Points for free, and Partiko Points can be converted into Steem token!

https://partiko.app/referral/partiko
πŸ‘  
properties (23)
authorpartiko
permlinkpartiko-re-dapeng-rosr-shiny-20190225t104503539z
categoryutopian-io
json_metadata{"app":"partiko"}
created2019-02-25 10:45:03
last_update2019-02-25 10:45:03
depth1
children0
last_payout2019-03-04 10:45:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length375
author_reputation39,207,160,334,751
root_title"[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,366,589
net_rshares22,199,159
author_curate_reward""
vote details (1)
@utopian-io ·
Hey, @dapeng!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-rosr-shiny-20190202t220919z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-02-02 22:09:21
last_update2019-02-02 22:09:21
depth1
children0
last_payout2019-02-09 22:09:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length588
author_reputation152,955,367,999,756
root_title"[New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,316,675
net_rshares0