mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 04:46:11 +01:00
Remove Windows only function
This commit is contained in:
parent
53464ff1c8
commit
1b3daebc84
@ -65,10 +65,6 @@ clipboard_export <- function(x,
|
|||||||
|
|
||||||
x <- get(x)
|
x <- get(x)
|
||||||
|
|
||||||
if (size > 25 * 1024 * 1024) {
|
|
||||||
# above 25 MB use a hacker function
|
|
||||||
writeClipboard(knitr::kable(x))
|
|
||||||
} else {
|
|
||||||
# set size of clipboard to 125% of the object size of x
|
# set size of clipboard to 125% of the object size of x
|
||||||
write.table(x = x,
|
write.table(x = x,
|
||||||
file = paste0("clipboard-", size * 1.25),
|
file = paste0("clipboard-", size * 1.25),
|
||||||
@ -78,7 +74,7 @@ clipboard_export <- function(x,
|
|||||||
col.names = header,
|
col.names = header,
|
||||||
dec = dec,
|
dec = dec,
|
||||||
quote = FALSE)
|
quote = FALSE)
|
||||||
}
|
|
||||||
cat("Successfully exported to clipboard:", NROW(x), "obs. of", NCOL(x), "variables.\n")
|
cat("Successfully exported to clipboard:", NROW(x), "obs. of", NCOL(x), "variables.\n")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user