Yihui Xie
6450927192
stats may not have been loaded in the event of .onLoad()
2014-06-09 10:56:36 -05:00
Yihui Xie
3a0a11d55a
introduce an equivalent function to achieve set.seed(NULL) in R 2.15.x
2014-06-02 16:14:22 -05:00
Yihui Xie
7eb8ddf372
fixes #456 : use .Random.seed only if it exists in the global environment
...
e.g. the expr may not trigger the creation of .Random.seed, such as set.seed(NULL) under R 2.15.x, which will fail
2014-06-02 16:13:37 -05:00
Yihui Xie
cb383d4f62
serverInfo() returns list(shinyServer=FALSE) by default, per suggestion of @trestletech
2014-06-02 15:18:54 -05:00
Joe Cheng
53a401f847
Merge pull request #495 from yihui/feature/serverInfo
...
add functions serverInfo() (exported) and setServerInfo() (not exported)
2014-06-02 09:16:51 -07:00
Joe Cheng
a0df8f3490
Merge pull request #491 from rstudio/bugfix/validation-silent
...
Suppress validation errors from printing at console
2014-05-28 13:14:02 -07:00
Joe Cheng
d4829e49ea
Doc tweak to validation
2014-05-21 19:57:18 -07:00
Joe Cheng
1c56be3a6b
Suppress validation errors from printing at console
2014-05-21 19:51:24 -07:00
Yihui Xie
79c92f1f8e
fixes #429 , which is yet yet another WAT of RJSONIO
...
perhaps we really should consider switching to jsonlite...
2014-05-17 00:43:13 -05:00
Yihui Xie
01c24a578b
add functions serverInfo() (exported) and setServerInfo() (not exported)
...
we can call shiny:::setServerInfo() in Shiny Server before launching an app, so that the app author can make use of the info to decide the behavior of the app
2014-05-16 13:22:22 -05:00
Joe Cheng
3189c748b5
Merge pull request #479 from rstudio/not-just-last-expressions
...
Allow shinyUI and shinyServer calls to not be the last expression in ui....
2014-05-14 09:06:28 -07:00
Joe Cheng
77bff6e6c2
Allow shinyUI and shinyServer calls to not be the last expression in ui.R and server.R
2014-05-08 16:14:53 -07:00
Yihui Xie
342265be94
put the custom class(es) in the first as Hadley suggested
2014-05-08 15:04:49 -07:00
Joe Cheng
ca27a9e31a
Validation refactoring
...
- Move validation logic from shinywrappers.R to utils.R
- Don't coerce validation results; fail if not FALSE, NULL, or character
- Reverse order of stopWithCondition args
2014-05-07 16:20:07 -07:00
Yihui Xie
07bed0c7c7
factor out a function columnToRowData() so both updateSelectInput() and selectizeJSON() can use it
2014-04-25 02:37:45 -05:00
Joe Cheng
59dbca250f
Fix roxygen
2014-04-21 16:50:06 -07:00
Joe Cheng
45669cacb1
Merge pull request #434 from jcheng5/private-random
...
Refactor private random seed code
2014-04-15 15:24:41 -07:00
Yihui Xie
d9be6f1d2e
implementing the server-side selectize input
...
also added a new method shinysession$registerDataObj(), which was designed to be a general data retrieval method: we can store arbitrary data objects as "downloads", and return arbitrary http response based on the filter function; see renderDataTable() and updateSelectizeInput() for two examples
2014-04-13 00:02:08 -05:00
Joe Cheng
314d433f86
Merge pull request #436 from rstudio/feature/shiny-docs
...
Improved support for R Markdown Shiny documents
2014-04-11 15:43:43 -07:00
Jonathan McPherson
6a9cba90f4
have validateCssUnit treat unit-free character strings as pixel units
2014-04-11 12:59:15 -07:00
trestletech
6873e1f1cb
Make normalizePath calls Windows-compatible.
2014-04-11 14:55:51 -05:00
Joe Cheng
020bb659c5
Rename tempSet to withTemporary
2014-04-11 12:00:55 -07:00
Joe Cheng
b1d6687fb0
Fix private random seed mechanism
...
- Introduce randomInt/p_randomInt to generate random integers in a half-open range
- Stop using runif to generate integers
- Explicitly reset the private seed during .onLoad. I was getting the same "random" numbers from Shiny every time I restarted R!
2014-04-11 11:57:39 -07:00
Jonathan McPherson
81bd57c5ea
emit appropriate warnings in R Markdown mode; collect <head> contents
2014-04-11 10:53:25 -07:00
Joe Cheng
599fdc7ee5
Refactor private random seed code
2014-04-10 15:03:18 -07:00
Joe Cheng
df34dcdb0c
Pass R CMD check
2014-04-03 19:37:45 -07:00
Joe Cheng
b187485172
Major refactor of runApp/addSubApp pipeline
...
- shinyUI and shinyServer calls are no longer required in ui.R and server.R
- shinyAppObj renamed to shinyApp
- runApp can take pathname, list(ui=..., server=...), shinyApp, and shinyAppDir
as appDir argument
- Unify all Shiny app representations around shiny.appobj
- BREAKING CHANGE: shinyUI no longer has a "path" argument
- Instead of returning UI, ui.R can return a function that returns UI; it will
be invoked each time the page is requested. (Note that this is NOT the same
as saying ui.R will be run each time the page is requested.) The function can
take either no args or a single "req" arg which is the request.
2014-04-03 01:42:01 -07:00
Joe Cheng
7e3717243f
Merge remote-tracking branch 'origin/master' into multiple-apps
...
Conflicts:
staticdocs/index.r
2014-03-31 12:08:59 -07:00
Joe Cheng
221849aa3a
More-correct impl of %OR%
2014-03-31 12:07:57 -07:00
Jonathan McPherson
fc9bedacc0
guard against null source references
2014-03-20 16:00:51 -07:00
Yihui Xie
b2d004ca1a
closes #31 : try to avoid scientific notation of numbers
2014-02-25 22:58:08 -06:00
Yihui Xie
80ce7a36f8
make it possible to filter numeric columns based on the specified range of the form "lower,upper"
2014-02-24 23:59:12 -06:00
Yihui Xie
705a8666be
iDisplayLength == -1 means "display all data" ( #400 )
...
we can use this feature via several ways, e.g.
- renderDataTable(..., options = list(bPaginate = FALSE))
- iDisplayLength = -1
- aLengthMenu = list(c(10, 30, -1), list(10, 30, 'All'))
2014-02-24 23:31:28 -06:00
Yihui Xie
9167905118
respect the bRegex option (as well as bRegex_j for individual columns)
...
however, this option is not part of the initialization options, so actually users can never use it...
#400
2014-02-24 23:29:10 -06:00
Yihui Xie
9a7b042594
respect the individual bSearchable_j options in datatables
2014-02-24 21:02:25 -06:00
Yihui Xie
88d2425ca3
respect the bFilter option: when it is false, do not show the search boxes
2014-02-20 18:21:36 -06:00
Yihui Xie
c21c407416
a few cosmetic changes
...
= to <-, and camelCase instead of under_score
2014-02-20 16:44:09 -06:00
Yihui Xie
eb8fec7f2d
when searching is turned on, we need to make sure the filtering indices i are smaller than nrow(filtered data) instead of original data
...
this fixes the bug reported at https://groups.google.com/forum/#!topic/shiny-discuss/xk2Gh7KJQBM
2014-02-19 23:09:25 -06:00
Yihui Xie
16279695a9
factor out the code to determine which options should be evaluated into a utility function checkAsIs(), so that it can be applied to selectizeInput() as well
2014-02-19 11:58:33 -06:00
Joe Cheng
9770bd8005
Tweak two Rd titles
2014-02-17 16:01:57 -08:00
Yihui Xie
3530871560
strip white spaces
2014-02-11 22:59:37 -06:00
Yihui Xie
66181fdcdf
reactive(NULL) works now
2014-01-17 22:40:13 -06:00
Yihui Xie
ef4e10bbb1
Merge pull request #355 from jcheng5/bugfix/null-children
...
Ignore NULL tag elements
2014-01-08 18:51:20 -08:00
Joe Cheng
99c3c2fc80
Ignore NULL tag elements
...
We already do the right thing for NULL tag attributes
2014-01-07 15:59:42 -08:00
Jonathan McPherson
3d031265d1
satisfy R CMD CHECK: validate srcfile, use with(tags rather than withTags
2014-01-07 12:51:03 -08:00
Jonathan McPherson
f600cb4f2c
allow source highlighting in files other than server.R
2014-01-06 14:33:31 -08:00
Jonathan McPherson
f754f028dc
simplify showcase mode setting in DESCRIPTION
2014-01-06 13:43:02 -08:00
Jonathan McPherson
41b292b45b
complete refactoring of raw text output to tags$... methods
2014-01-06 13:19:07 -08:00
Jonathan McPherson
ccfaea64c5
simplify & clean up construction of markdown content
2014-01-06 10:38:05 -08:00
Jonathan McPherson
f0eb9d48c9
show license beneath code
2013-12-30 14:31:45 -08:00