Skip to content

Commit

Permalink
Enable help function inside the R environment (#9)
Browse files Browse the repository at this point in the history
* Enable the help function

* Bump versions

* Modify list display
  • Loading branch information
coatless authored Sep 27, 2019
1 parent 505bc71 commit f06af94
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .Renviron
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Copyright (C) 2019 James Joseph Balamuta <balamut2@illinois.edu>
#
# Version 2.5.0 -- 04/16/19
# Version 2.5.1 -- 09/26/19
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
11 changes: 5 additions & 6 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Copyright (C) 2019 James Joseph Balamuta <balamut2@illinois.edu>
#
# Version 2.5.0 -- 04/16/19
# Version 2.5.1 -- 09/26/19
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -55,7 +55,7 @@
## Hard coded help documentation location
## TODO: Update to where docs are on the CBTF website!!

cbtf_help_url = "https://cbtf.engr.illinois.edu/home.html"
cbtf_help_url = "https://cbtf.engr.illinois.edu/for-students/software-RStudio.html"

## Open the URL for students to view help documentation
help_cbtf = function(url = cbtf_help_url) {
Expand All @@ -65,7 +65,7 @@

## Place the help function into the global environment
## TODO: Enable when documentation is present
# base::assign("help_cbtf", help_cbtf, envir = globalenv())
base::assign("help_cbtf", help_cbtf, envir = globalenv())

## Provide startup messages in red text to indicate the status of
## package installation and environment specific documentation
Expand All @@ -78,7 +78,7 @@
message("Note: ")
wrap_msg("Installing packages from CRAN is disabled.")
wrap_msg(
"Packages required by STAT 385, STAT 430 DSPM, STAT 432, and CE 202 have been pre-installed. \n"
"Packages required by:\n STAT 385, STAT 430 DSPM, STAT 432, and CE 202\n have been pre-installed. \n"
)
}

Expand All @@ -88,8 +88,7 @@

cbtf_welcome_msg = function() {
cbtf_disabled_cran_msg()
# TODO: Enable when help docs are on the CBTF website!
# cbtf_documentation_msg()
cbtf_documentation_msg()
}

## Disable install.packages ----
Expand Down
2 changes: 1 addition & 1 deletion r-pkg-install.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# Copyright (C) 2019 James Joseph Balamuta <balamut2@illinois.edu>
#
# Version 2.5.0 -- 04/16/19
# Version 2.5.1 -- 09/26/19
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion setup-centos7-r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# Copyright (C) 2019 James Joseph Balamuta <balamut2@illinois.edu>
#
# Version 2.5.0 -- 04/16/19
# Version 2.5.1 -- 09/26/19
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit f06af94

Please # to comment.