Skip to content

Commit

Permalink
Merge pull request #159 from lawinslow/master
Browse files Browse the repository at this point in the history
Addressing issue #158
  • Loading branch information
Luke Winslow committed Jan 18, 2016
2 parents ffa4eef + b43684c commit 270a28b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: sbtools
Title: USGS ScienceBase Tools
Maintainer: Luke Winslow <lwinslow@usgs.gov>
Version: 0.14.3
Version: 0.14.4
Authors@R: c(person("Luke", "Winslow", role = c("aut","cre"),
email = "lwinslow@usgs.gov"),
person("Scott", "Chamberlain", role = c("aut"),
Expand Down
7 changes: 5 additions & 2 deletions R/current_session.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#'
#'@description
#'Returns the currently cached SB session. If there
#'is no authenticated session, returns NULL.
#'is no authenticated session, returns NULL. Emits a
#'warning if the session has expired.
#'
#'@author Luke Winslow
#'
Expand All @@ -12,6 +13,8 @@
#'
#'@export
current_session = function(){

if(session_expired(pkg.env$session)){
warning('SB authentication expired, SB interaction may fail. Please re-authenticate using authenticate_sb().')
}
return(pkg.env$session)
}
3 changes: 2 additions & 1 deletion man/current_session.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 270a28b

Please sign in to comment.