Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Create a FOLDER in BOX from R #271

Open
hshambaugh opened this issue Apr 15, 2024 · 0 comments
Open

Unable to Create a FOLDER in BOX from R #271

hshambaugh opened this issue Apr 15, 2024 · 0 comments

Comments

@hshambaugh
Copy link

hshambaugh commented Apr 15, 2024

Using R STudio
library(boxr)

#create a Box directory.
newFolder <- "NEWFOLDER"
names(newFolder) <- c("name")
newFolders_df <- as.data.frame(t(newFolder))
#--------------------------------------------------------------------------------------------------
FAILS:
box_upload_new(dir_id = "123", file = "C:/Users/Desktop/Test",pb = FALSE)

Error in could not find function "box_upload_new"

#---------------------------------------------------------
ALSO FAILS:
box_dir_create(dir_name = newFolders_df$name, parent_dir_id = box_getwd())

ERROR:
in x$name : $ operator is invalid for atomic vectors

#----------------------------------------------------------
ALSO FAILS:

box_ul(
dir_id = box_getwd(),
file = "C:/Users/Desktop/TEST/TestUpload.txt",
pb = FALSE,
description = NULL
)

ERROR:
in httr::content(ul_req)$status :
$ operator is invalid for atomic vectors
#----------------------------------------------------------
ALSO FAILS - IT does nothing, returns no ERRORS:

box_push(
dir_id = "123",
local_dir = "C:/Users/Desktop/TEST",
ignore_dots = TRUE,
overwrite = FALSE,
delete = FALSE
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant