Browse Source

fix CRAN check errors

boB Rudis 3 years ago
parent
commit
7d6af4cf5d
6 changed files with 7 additions and 7 deletions
  1. 1
    1
      R/dsl.r
  2. 1
    1
      R/execute.r
  3. 1
    1
      R/helpers.r
  4. 1
    1
      R/render-html.r
  5. 2
    2
      man/execute_lua.Rd
  6. 1
    1
      man/splash_har_reset.Rd

+ 1
- 1
R/dsl.r View File

@@ -234,7 +234,7 @@ splash_wait <- function(splash_obj, time=2) {
234 234
 #' @md
235 235
 #' @param splash_obj splashr object
236 236
 #' @export
237
-splash_har_reset <- function(splash_obj, keys) {
237
+splash_har_reset <- function(splash_obj) {
238 238
    splash_obj$calls <- c(splash_obj$calls, 'splash:har_reset()')
239 239
    splash_obj
240 240
 }

+ 1
- 1
R/execute.r View File

@@ -2,7 +2,7 @@
2 2
 #'
3 3
 #' @md
4 4
 #' @param splash_obj Object created by a call to [splash()]
5
-#' @param lua_sourc Browser automation script. See [Splash Script](http://splash.readthedocs.io/en/stable/scripting-tutorial.html#scripting-tutorial) Tutorial for more info.
5
+#' @param lua_source Browser automation script. See [Splash Script](http://splash.readthedocs.io/en/stable/scripting-tutorial.html#scripting-tutorial) Tutorial for more info.
6 6
 #' @param timeout A timeout (in seconds) for the render (defaults to 30).
7 7
 #' @param allowed_domains Comma-separated list of allowed domain names. If present, Splash won’t load anything neither from domains not in this list nor from subdomains of domains not in this list.
8 8
 #' @param proxy Proxy profile name or proxy URL.

+ 1
- 1
R/helpers.r View File

@@ -165,7 +165,7 @@ har_entry_count <- function(x) {
165 165
   } else if (inherits(x, "harlog")) {
166 166
     length(x$entries)
167 167
   } else if (inherits(x, "harentries")) {
168
-    length(x[[i]])
168
+    length(x)
169 169
   } else {
170 170
     NULL
171 171
   }

+ 1
- 1
R/render-html.r View File

@@ -26,7 +26,7 @@
26 26
 #' @param raw_html if `TRUE` then return a character vector vs an XML document. Only valid for `render_html`
27 27
 #' @return An XML document. Note that this is processed by [xml2::read_html()] so it will not be
28 28
 #'         the pristine, raw, rendered HTML from the site. Use `raw_html=TRUE` if you do not want it
29
-#'         to be processed first by [xml2]. If you choose `raw_html=TRUE` you'll get back a
29
+#'         to be processed first by `xml2`. If you choose `raw_html=TRUE` you'll get back a
30 30
 #'         character vector.
31 31
 #' @references [Splash docs](http://splash.readthedocs.io/en/stable/index.html)
32 32
 #' @export

+ 2
- 2
man/execute_lua.Rd View File

@@ -10,6 +10,8 @@ execute_lua(splash_obj, lua_source, timeout = 30, allowed_domains, proxy,
10 10
 \arguments{
11 11
 \item{splash_obj}{Object created by a call to \code{\link[=splash]{splash()}}}
12 12
 
13
+\item{lua_source}{Browser automation script. See \href{http://splash.readthedocs.io/en/stable/scripting-tutorial.html#scripting-tutorial}{Splash Script} Tutorial for more info.}
14
+
13 15
 \item{timeout}{A timeout (in seconds) for the render (defaults to 30).}
14 16
 
15 17
 \item{allowed_domains}{Comma-separated list of allowed domain names. If present, Splash won’t load anything neither from domains not in this list nor from subdomains of domains not in this list.}
@@ -21,8 +23,6 @@ execute_lua(splash_obj, lua_source, timeout = 30, allowed_domains, proxy,
21 23
 \item{save_args}{A list of argument names to put in cache.}
22 24
 
23 25
 \item{load_args}{Parameter values to load from cache}
24
-
25
-\item{lua_sourc}{Browser automation script. See \href{http://splash.readthedocs.io/en/stable/scripting-tutorial.html#scripting-tutorial}{Splash Script} Tutorial for more info.}
26 26
 }
27 27
 \value{
28 28
 \code{raw} content from the \code{httr} call. Given the vast diversity of possible return values, it's up to the caller to handle the return value.

+ 1
- 1
man/splash_har_reset.Rd View File

@@ -4,7 +4,7 @@
4 4
 \alias{splash_har_reset}
5 5
 \title{Drops all internally stored HAR records.}
6 6
 \usage{
7
-splash_har_reset(splash_obj, keys)
7
+splash_har_reset(splash_obj)
8 8
 }
9 9
 \arguments{
10 10
 \item{splash_obj}{splashr object}

Loading…
Cancel
Save