Giter VIP home page Giter VIP logo

Comments (17)

mkcor avatar mkcor commented on August 23, 2024

@ghatfan99 I'm not familiar with the "httr" package, but looking up use_proxy(), I gather that the url argument should be your proxy IP (not the "plotly" repo).

from plotly.r.

ghatfan99 avatar ghatfan99 commented on August 23, 2024

@mkcor thank's for your answer,
Does anyone knows how to install the packages from Github manually, i tried downloading the zip file from https://github.com/ropensci/plotly and after that in my Rstudio i installed the package from zip file, but when i tape :
library(plotly)
Error in library(plotly) : there is no package called ‘plotly’

thanks

from plotly.r.

mkcor avatar mkcor commented on August 23, 2024

@ghatfan99 How did you install the package from the zip file, please? Can you share the command plus its output, please?

from plotly.r.

ghatfan99 avatar ghatfan99 commented on August 23, 2024

Hello mkcor,
after you have downloaded the zip file of any package in R to your hard disk, you have two choices to install the package:

  1. in console: install.packages("C:/Users/.../plotly_master.zip", repos = NULL)
    here i have no error message:
    "Installing package into ‘C:/Users/.../Documents/R/win-library/3.1’
    (as ‘lib’ is unspecified)"
    now when i do:
    library(plotly_master)
    i have the error: Error in library(plotly_master) :
    there is no package called ‘plotly_master’

Regards

from plotly.r.

mkcor avatar mkcor commented on August 23, 2024

Okay -- although the zip file you download should be named plotly-master.zip, not plotly_master.zip...

Then you should load "plotly":

library(plotly)

not "plotly_master".

from plotly.r.

ghatfan99 avatar ghatfan99 commented on August 23, 2024

Hello mkcor
i tried the instructions as you mentioned but still have the same problem:

install.packages("C:/Users/.../Downloads/plotly-master.zip", repos = NULL)
Installing package into ‘C:/Users/.../Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
library(plotly)
Error in library(plotly) : ‘plotly’ is not a valid installed package
i don't understand where is the problem?

from plotly.r.

mkcor avatar mkcor commented on August 23, 2024

After running the install.packages() command, can you check that you actually have a plotly directory at C:/Users/.../Documents/R/win-library/3.1/? You should see your other R packages there as well.
Once you have made sure where the plotly package got installed, please load it with

require(plotly, lib.loc="C:/Users/.../Documents/R/win-library/3.1")

where argument lib.loc is the location of R library trees to search through (see official docs).

Let me Cc @msund who may have assisted Windows users with their install issues.

from plotly.r.

cpsievert avatar cpsievert commented on August 23, 2024

Closing this since it's not a problem with the R package itself...

Assuming you have the source files locally, you can also install with R CMD INSTALL or devtools::install():

git clone https://github.com/ropensci/plotly.git
Rscript -e "devtools::install('plotly')"

from plotly.r.

vishy730 avatar vishy730 commented on August 23, 2024

Hi, have downloaded zip file from this location, https://github.com/ropensci/plotly/releases/tag/0.3
and tried teh above steps.. with type=source.. neither it gave error nor installed..
I am using windows server 2012 and latest R and Rstudio versions

from plotly.r.

mkcor avatar mkcor commented on August 23, 2024

@vishy730 That version is super outdated... Please refer to https://plot.ly/r/getting-started/ for up-to-date information on how to install and load the "plotly" R package.

from plotly.r.

vishy730 avatar vishy730 commented on August 23, 2024

Thanks mkcor, I could solve the issue...

from plotly.r.

mkcor avatar mkcor commented on August 23, 2024

@vishy730 Great, I'm glad!

from plotly.r.

h3ncabo avatar h3ncabo commented on August 23, 2024

I have the same issue, tried mkcor's suggestions but instead of seeing a plotly directory, i see plotly-master....I get this error message

Loading required package: plotly
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘plotly’

from plotly.r.

13bzhang avatar 13bzhang commented on August 23, 2024

@h3ncabo Sorry you're experiencing this problem. Can you provide us with the exact code you used and what type of operation system you're using?

from plotly.r.

h3ncabo avatar h3ncabo commented on August 23, 2024

@13bzhang
I'm using Windows 8.1. I tried installing by install_github("ropensci/plotly")
but did not work since my college uses a proxy and is not inclined to provide me details/access
so I tried local installation
install.packages("C:/Users/.../Downloads/plotly-master.zip", repos = NULL, type="source")
then I got that error above when i called for library(plotly).
I did notice that there is folder named plotly-master in my lib.loc

I also tried require(plotly, lib.loc="C:/Users/.../R/win-library/3.2") still the same error

from plotly.r.

13bzhang avatar 13bzhang commented on August 23, 2024

Hi! Have you talked to your system administrator about this issue? At my university, sometimes you need permission to install certain things.

from plotly.r.

h3ncabo avatar h3ncabo commented on August 23, 2024

@13bzhang yes. its not possible. any comment on the exact code I use? Is there an alternative?

from plotly.r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.